diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java index 5be15ff6ac..3de3a7eb8a 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java @@ -48,9 +48,9 @@ import org.springframework.util.StringUtils; *
Note that most of the features of this class are not provided by the * JDK's introspection facilities themselves. * - *
As a general rule for runtime-retained annotations (e.g. for transaction - * control, authorization, or service exposure), always use the lookup methods - * on this class (e.g., {@link #findAnnotation(Method, Class)} and + *
As a general rule for runtime-retained application annotations (e.g. for + * transaction control, authorization, or service exposure), always use the + * lookup methods on this class (e.g. {@link #findAnnotation(Method, Class)} or * {@link #getAnnotation(Method, Class)}) instead of the plain annotation lookup * methods in the JDK. You can still explicitly choose between a get * lookup on the given class level only ({@link #getAnnotation(Method, Class)}) @@ -1055,8 +1055,7 @@ public abstract class AnnotationUtils { } catch (InvocationTargetException ex) { rethrowAnnotationConfigurationException(ex.getTargetException()); - throw new IllegalStateException( - "Could not obtain value for annotation attribute '" + + throw new IllegalStateException("Could not obtain value for annotation attribute '" + attributeName + "' in " + annotation, ex); } catch (Throwable ex) {