WW-4744: Add @Deprecated tags
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/67069a97 Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/67069a97 Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/67069a97 Branch: refs/heads/master Commit: 67069a97243489b338b88786ec1e0ace03a14bba Parents: 2d5f0aa Author: Yasser Zamani <[email protected]> Authored: Mon Mar 27 01:46:48 2017 +0430 Committer: Yasser Zamani <[email protected]> Committed: Mon Mar 27 01:46:48 2017 +0430 ---------------------------------------------------------------------- .../main/java/com/opensymphony/xwork2/util/AnnotationUtils.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/67069a97/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java b/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java index 6e3836f..8492277 100644 --- a/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java +++ b/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java @@ -119,6 +119,7 @@ public class AnnotationUtils { * method {@link AnnotatedElement}s matching the specified {@link Annotation}s * @deprecated Will be removed after release of <a href="https://github.com/apache/commons-lang/pull/261">LANG-1317</a> */ + @Deprecated public static Collection<Method> getAnnotatedMethods(Class clazz, Class<? extends Annotation>... annotation) { List<Class<?>> allSuperclasses = ClassUtils.getAllSuperclasses(clazz); allSuperclasses.add(0, clazz); @@ -171,6 +172,7 @@ public class AnnotationUtils { * @return an Annotation (possibly null). * @deprecated Will be removed after release of <a href="https://github.com/apache/commons-lang/pull/261">LANG-1317</a> */ + @Deprecated public static <A extends Annotation> A findAnnotation(final Method method, final Class<A> annotationCls) { A annotation = method.getAnnotation(annotationCls);
