@@ -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 )) {
@@ -333,7 +333,7 @@ public static AnnotationAttributes getAnnotationAttributes(AnnotatedElement elem
333333 public static AnnotationAttributes getMergedAnnotationAttributes (
334334 AnnotatedElement element , Class <? extends Annotation > annotationType ) {
335335
336- Assert .notNull (annotationType , "annotationType must not be null" );
336+ Assert .notNull (annotationType , "' annotationType' must not be null" );
337337 AnnotationAttributes attributes = searchWithGetSemantics (element , annotationType , null ,
338338 new MergedAnnotationAttributesProcessor ());
339339 AnnotationUtils .postProcessAnnotationAttributes (element , attributes , false , false );
@@ -417,7 +417,7 @@ public static AnnotationAttributes getMergedAnnotationAttributes(AnnotatedElemen
417417 * @see AnnotationUtils#synthesizeAnnotation(Map, Class, AnnotatedElement)
418418 */
419419 public static <A extends Annotation > A getMergedAnnotation (AnnotatedElement element , Class <A > annotationType ) {
420- Assert .notNull (annotationType , "annotationType must not be null" );
420+ Assert .notNull (annotationType , "' annotationType' must not be null" );
421421
422422 // Shortcut: directly present on the element, with no merging needed?
423423 if (!(element instanceof Class )) {
@@ -458,7 +458,7 @@ public static <A extends Annotation> Set<A> getAllMergedAnnotations(AnnotatedEle
458458 Class <A > annotationType ) {
459459
460460 Assert .notNull (element , "AnnotatedElement must not be null" );
461- Assert .notNull (annotationType , "annotationType must not be null" );
461+ Assert .notNull (annotationType , "' annotationType' must not be null" );
462462
463463 MergedAnnotationAttributesProcessor processor = new MergedAnnotationAttributesProcessor (false , false , true );
464464 searchWithGetSemantics (element , annotationType , null , processor );
@@ -525,7 +525,7 @@ public static <A extends Annotation> Set<A> getMergedRepeatableAnnotations(Annot
525525 Class <A > annotationType , Class <? extends Annotation > containerType ) {
526526
527527 Assert .notNull (element , "AnnotatedElement must not be null" );
528- Assert .notNull (annotationType , "annotationType must not be null" );
528+ Assert .notNull (annotationType , "' annotationType' must not be null" );
529529
530530 if (containerType == null ) {
531531 containerType = resolveContainerType (annotationType );
@@ -611,7 +611,7 @@ public Object process(AnnotatedElement annotatedElement, Annotation annotation,
611611 */
612612 public static boolean hasAnnotation (AnnotatedElement element , Class <? extends Annotation > annotationType ) {
613613 Assert .notNull (element , "AnnotatedElement must not be null" );
614- Assert .notNull (annotationType , "annotationType must not be null" );
614+ Assert .notNull (annotationType , "' annotationType' must not be null" );
615615
616616 // Shortcut: directly present on the element, with no processing needed?
617617 if (element .isAnnotationPresent (annotationType )) {
@@ -714,7 +714,7 @@ public static AnnotationAttributes findMergedAnnotationAttributes(AnnotatedEleme
714714 * @see #getMergedAnnotationAttributes(AnnotatedElement, Class)
715715 */
716716 public static <A extends Annotation > A findMergedAnnotation (AnnotatedElement element , Class <A > annotationType ) {
717- Assert .notNull (annotationType , "annotationType must not be null" );
717+ Assert .notNull (annotationType , "' annotationType' must not be null" );
718718
719719 // Shortcut: directly present on the element, with no merging needed?
720720 if (!(element instanceof Class )) {
@@ -783,7 +783,7 @@ public static <A extends Annotation> Set<A> findAllMergedAnnotations(AnnotatedEl
783783 Class <A > annotationType ) {
784784
785785 Assert .notNull (element , "AnnotatedElement must not be null" );
786- Assert .notNull (annotationType , "annotationType must not be null" );
786+ Assert .notNull (annotationType , "' annotationType' must not be null" );
787787
788788 MergedAnnotationAttributesProcessor processor = new MergedAnnotationAttributesProcessor (false , false , true );
789789 searchWithFindSemantics (element , annotationType , null , processor );
@@ -850,7 +850,7 @@ public static <A extends Annotation> Set<A> findMergedRepeatableAnnotations(Anno
850850 Class <A > annotationType , Class <? extends Annotation > containerType ) {
851851
852852 Assert .notNull (element , "AnnotatedElement must not be null" );
853- Assert .notNull (annotationType , "annotationType must not be null" );
853+ Assert .notNull (annotationType , "' annotationType' must not be null" );
854854
855855 if (containerType == null ) {
856856 containerType = resolveContainerType (annotationType );
@@ -957,7 +957,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element, Class<? ex
957957 }
958958 }
959959 }
960- catch (Exception ex ) {
960+ catch (Throwable ex ) {
961961 AnnotationUtils .handleIntrospectionFailure (element , ex );
962962 }
963963 }
@@ -1246,7 +1246,7 @@ else if (element instanceof Class) {
12461246 }
12471247 }
12481248 }
1249- catch (Exception ex ) {
1249+ catch (Throwable ex ) {
12501250 AnnotationUtils .handleIntrospectionFailure (element , ex );
12511251 }
12521252 }
@@ -1288,7 +1288,7 @@ private static <A extends Annotation> A[] getRawAnnotationsFromContainer(Annotat
12881288 try {
12891289 return (A []) AnnotationUtils .getValue (container );
12901290 }
1291- catch (Exception ex ) {
1291+ catch (Throwable ex ) {
12921292 AnnotationUtils .handleIntrospectionFailure (element , ex );
12931293 }
12941294 // Unable to read value from repeating annotation container -> ignore it.
@@ -1307,8 +1307,8 @@ private static Class<? extends Annotation> resolveContainerType(Class<? extends
13071307 Class <? extends Annotation > containerType = AnnotationUtils .resolveContainerAnnotationType (annotationType );
13081308 if (containerType == null ) {
13091309 throw new IllegalArgumentException (
1310- "annotationType must be a repeatable annotation: failed to resolve container type for "
1311- + annotationType .getName ());
1310+ "Annotation type must be a repeatable annotation: failed to resolve container type for " +
1311+ annotationType .getName ());
13121312 }
13131313 return containerType ;
13141314 }
@@ -1330,15 +1330,15 @@ private static void validateContainerType(Class<? extends Annotation> annotation
13301330 Class <?> returnType = method .getReturnType ();
13311331 if (!returnType .isArray () || returnType .getComponentType () != annotationType ) {
13321332 String msg = String .format (
1333- "Container type [%s] must declare a 'value' attribute for an array of type [%s]" ,
1334- containerType .getName (), annotationType .getName ());
1333+ "Container type [%s] must declare a 'value' attribute for an array of type [%s]" ,
1334+ containerType .getName (), annotationType .getName ());
13351335 throw new AnnotationConfigurationException (msg );
13361336 }
13371337 }
1338- catch (Exception ex ) {
1338+ catch (Throwable ex ) {
13391339 AnnotationUtils .rethrowAnnotationConfigurationException (ex );
13401340 String msg = String .format ("Invalid declaration of container type [%s] for repeatable annotation [%s]" ,
1341- containerType .getName (), annotationType .getName ());
1341+ containerType .getName (), annotationType .getName ());
13421342 throw new AnnotationConfigurationException (msg , ex );
13431343 }
13441344 }
0 commit comments