This is an automated email from the ASF dual-hosted git repository. jamesbognar pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/juneau.git
commit af42091bb451ff8304335cc8ad75db0722b1ecaf Author: James Bognar <[email protected]> AuthorDate: Mon Nov 3 14:53:43 2025 -0500 Utility class modernization --- .../src/main/java/org/apache/juneau/common/reflect/AccessibleInfo.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/juneau-core/juneau-common/src/main/java/org/apache/juneau/common/reflect/AccessibleInfo.java b/juneau-core/juneau-common/src/main/java/org/apache/juneau/common/reflect/AccessibleInfo.java index f3d2170bbb..248aababc1 100644 --- a/juneau-core/juneau-common/src/main/java/org/apache/juneau/common/reflect/AccessibleInfo.java +++ b/juneau-core/juneau-common/src/main/java/org/apache/juneau/common/reflect/AccessibleInfo.java @@ -229,7 +229,6 @@ public abstract class AccessibleInfo { * @param annotationClass The Class object corresponding to the annotation type. * @return An unmodifiable list of all this element's annotations of the specified type, or an empty list if there are none. */ - @SuppressWarnings("unchecked") public <A extends Annotation> List<A> getAnnotationsByType(Class<A> annotationClass) { return (List<A>) annotationsByType.get(annotationClass); } @@ -254,7 +253,6 @@ public abstract class AccessibleInfo { * @param annotationClass The Class object corresponding to the annotation type. * @return An unmodifiable list of all this element's declared annotations of the specified type, or an empty list if there are none. */ - @SuppressWarnings("unchecked") public <A extends Annotation> List<A> getDeclaredAnnotationsByType(Class<A> annotationClass) { return (List<A>) declaredAnnotationsByType.get(annotationClass); }
