@@ -151,7 +151,7 @@ public Annotation[] getDeclaredAnnotations() {
151151 */
152152 public static Set <String > getMetaAnnotationTypes (AnnotatedElement element , Class <? extends Annotation > annotationType ) {
153153 Assert .notNull (element , "AnnotatedElement must not be null" );
154- Assert .notNull (annotationType , "annotationType must not be null" );
154+ Assert .notNull (annotationType , "' annotationType' must not be null" );
155155
156156 return getMetaAnnotationTypes (element , element .getAnnotation (annotationType ));
157157 }
@@ -213,7 +213,7 @@ public Object process(AnnotatedElement annotatedElement, Annotation annotation,
213213 */
214214 public static boolean hasMetaAnnotationTypes (AnnotatedElement element , Class <? extends Annotation > annotationType ) {
215215 Assert .notNull (element , "AnnotatedElement must not be null" );
216- Assert .notNull (annotationType , "annotationType must not be null" );
216+ Assert .notNull (annotationType , "' annotationType' must not be null" );
217217
218218 return hasMetaAnnotationTypes (element , annotationType , null );
219219 }
@@ -266,7 +266,7 @@ public Boolean process(AnnotatedElement annotatedElement, Annotation annotation,
266266 */
267267 public static boolean isAnnotated (AnnotatedElement element , Class <? extends Annotation > annotationType ) {
268268 Assert .notNull (element , "AnnotatedElement must not be null" );
269- Assert .notNull (annotationType , "annotationType must not be null" );
269+ Assert .notNull (annotationType , "' annotationType' must not be null" );
270270
271271 // Shortcut: directly present on the element, with no processing needed?
272272 if (element .isAnnotationPresent (annotationType )) {
@@ -315,7 +315,7 @@ public static boolean isAnnotated(AnnotatedElement element, String annotationNam
315315 public static AnnotationAttributes getMergedAnnotationAttributes (
316316 AnnotatedElement element , Class <? extends Annotation > annotationType ) {
317317
318- Assert .notNull (annotationType , "annotationType must not be null" );
318+ Assert .notNull (annotationType , "' annotationType' must not be null" );
319319 AnnotationAttributes attributes = searchWithGetSemantics (element , annotationType , null ,
320320 new MergedAnnotationAttributesProcessor ());
321321 AnnotationUtils .postProcessAnnotationAttributes (element , attributes , false , false );
@@ -399,7 +399,7 @@ public static AnnotationAttributes getMergedAnnotationAttributes(AnnotatedElemen
399399 * @see AnnotationUtils#synthesizeAnnotation(Map, Class, AnnotatedElement)
400400 */
401401 public static <A extends Annotation > A getMergedAnnotation (AnnotatedElement element , Class <A > annotationType ) {
402- Assert .notNull (annotationType , "annotationType must not be null" );
402+ Assert .notNull (annotationType , "' annotationType' must not be null" );
403403
404404 // Shortcut: directly present on the element, with no merging needed?
405405 if (!(element instanceof Class )) {
@@ -440,7 +440,7 @@ public static <A extends Annotation> Set<A> getAllMergedAnnotations(AnnotatedEle
440440 Class <A > annotationType ) {
441441
442442 Assert .notNull (element , "AnnotatedElement must not be null" );
443- Assert .notNull (annotationType , "annotationType must not be null" );
443+ Assert .notNull (annotationType , "' annotationType' must not be null" );
444444
445445 MergedAnnotationAttributesProcessor processor = new MergedAnnotationAttributesProcessor (false , false , true );
446446 searchWithGetSemantics (element , annotationType , null , processor );
@@ -507,7 +507,7 @@ public static <A extends Annotation> Set<A> getMergedRepeatableAnnotations(Annot
507507 Class <A > annotationType , Class <? extends Annotation > containerType ) {
508508
509509 Assert .notNull (element , "AnnotatedElement must not be null" );
510- Assert .notNull (annotationType , "annotationType must not be null" );
510+ Assert .notNull (annotationType , "' annotationType' must not be null" );
511511
512512 if (containerType == null ) {
513513 containerType = resolveContainerType (annotationType );
@@ -593,7 +593,7 @@ public Object process(AnnotatedElement annotatedElement, Annotation annotation,
593593 */
594594 public static boolean hasAnnotation (AnnotatedElement element , Class <? extends Annotation > annotationType ) {
595595 Assert .notNull (element , "AnnotatedElement must not be null" );
596- Assert .notNull (annotationType , "annotationType must not be null" );
596+ Assert .notNull (annotationType , "' annotationType' must not be null" );
597597
598598 // Shortcut: directly present on the element, with no processing needed?
599599 if (element .isAnnotationPresent (annotationType )) {
@@ -696,7 +696,7 @@ public static AnnotationAttributes findMergedAnnotationAttributes(AnnotatedEleme
696696 * @see #getMergedAnnotationAttributes(AnnotatedElement, Class)
697697 */
698698 public static <A extends Annotation > A findMergedAnnotation (AnnotatedElement element , Class <A > annotationType ) {
699- Assert .notNull (annotationType , "annotationType must not be null" );
699+ Assert .notNull (annotationType , "' annotationType' must not be null" );
700700
701701 // Shortcut: directly present on the element, with no merging needed?
702702 if (!(element instanceof Class )) {
@@ -736,7 +736,7 @@ public static <A extends Annotation> Set<A> findAllMergedAnnotations(AnnotatedEl
736736 Class <A > annotationType ) {
737737
738738 Assert .notNull (element , "AnnotatedElement must not be null" );
739- Assert .notNull (annotationType , "annotationType must not be null" );
739+ Assert .notNull (annotationType , "' annotationType' must not be null" );
740740
741741 MergedAnnotationAttributesProcessor processor = new MergedAnnotationAttributesProcessor (false , false , true );
742742 searchWithFindSemantics (element , annotationType , null , processor );
@@ -803,7 +803,7 @@ public static <A extends Annotation> Set<A> findMergedRepeatableAnnotations(Anno
803803 Class <A > annotationType , Class <? extends Annotation > containerType ) {
804804
805805 Assert .notNull (element , "AnnotatedElement must not be null" );
806- Assert .notNull (annotationType , "annotationType must not be null" );
806+ Assert .notNull (annotationType , "' annotationType' must not be null" );
807807
808808 if (containerType == null ) {
809809 containerType = resolveContainerType (annotationType );
@@ -910,7 +910,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element, Class<? ex
910910 }
911911 }
912912 }
913- catch (Exception ex ) {
913+ catch (Throwable ex ) {
914914 AnnotationUtils .handleIntrospectionFailure (element , ex );
915915 }
916916 }
@@ -1199,7 +1199,7 @@ else if (element instanceof Class) {
11991199 }
12001200 }
12011201 }
1202- catch (Exception ex ) {
1202+ catch (Throwable ex ) {
12031203 AnnotationUtils .handleIntrospectionFailure (element , ex );
12041204 }
12051205 }
@@ -1241,7 +1241,7 @@ private static <A extends Annotation> A[] getRawAnnotationsFromContainer(Annotat
12411241 try {
12421242 return (A []) AnnotationUtils .getValue (container );
12431243 }
1244- catch (Exception ex ) {
1244+ catch (Throwable ex ) {
12451245 AnnotationUtils .handleIntrospectionFailure (element , ex );
12461246 }
12471247 // Unable to read value from repeating annotation container -> ignore it.
@@ -1260,8 +1260,8 @@ private static Class<? extends Annotation> resolveContainerType(Class<? extends
12601260 Class <? extends Annotation > containerType = AnnotationUtils .resolveContainerAnnotationType (annotationType );
12611261 if (containerType == null ) {
12621262 throw new IllegalArgumentException (
1263- "annotationType must be a repeatable annotation: failed to resolve container type for "
1264- + annotationType .getName ());
1263+ "Annotation type must be a repeatable annotation: failed to resolve container type for " +
1264+ annotationType .getName ());
12651265 }
12661266 return containerType ;
12671267 }
@@ -1283,15 +1283,15 @@ private static void validateContainerType(Class<? extends Annotation> annotation
12831283 Class <?> returnType = method .getReturnType ();
12841284 if (!returnType .isArray () || returnType .getComponentType () != annotationType ) {
12851285 String msg = String .format (
1286- "Container type [%s] must declare a 'value' attribute for an array of type [%s]" ,
1287- containerType .getName (), annotationType .getName ());
1286+ "Container type [%s] must declare a 'value' attribute for an array of type [%s]" ,
1287+ containerType .getName (), annotationType .getName ());
12881288 throw new AnnotationConfigurationException (msg );
12891289 }
12901290 }
1291- catch (Exception ex ) {
1291+ catch (Throwable ex ) {
12921292 AnnotationUtils .rethrowAnnotationConfigurationException (ex );
12931293 String msg = String .format ("Invalid declaration of container type [%s] for repeatable annotation [%s]" ,
1294- containerType .getName (), annotationType .getName ());
1294+ containerType .getName (), annotationType .getName ());
12951295 throw new AnnotationConfigurationException (msg , ex );
12961296 }
12971297 }
0 commit comments