Validate Class attributes as well as Class array attributes
Issue: SPR-16564
This commit is contained in:
parent
50e980c02f
commit
967a2ef2d2
|
|
@ -912,7 +912,8 @@ public abstract class AnnotationUtils {
|
|||
*/
|
||||
public static void validateAnnotation(Annotation annotation) {
|
||||
for (Method method : getAttributeMethods(annotation.annotationType())) {
|
||||
if (method.getReturnType() == Class.class) {
|
||||
Class<?> returnType = method.getReturnType();
|
||||
if (returnType == Class.class || returnType == Class[].class) {
|
||||
try {
|
||||
method.invoke(annotation);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue