@@ -454,7 +454,7 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
454
454
* or if it should be looked up via @{@link java.lang.annotation.Repeatable}
455
455
* when running on Java 8 or higher
456
456
* @param declaredMode {@code true} if only declared annotations (i.e.,
457
- * directly or indirectly present) should be considered.
457
+ * directly or indirectly present) should be considered
458
458
* @return the annotations found or an empty set; never {@code null}
459
459
* @since 4.2
460
460
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
@@ -1277,10 +1277,8 @@ public static <A extends Annotation> A synthesizeAnnotation(A annotation, Annota
1277
1277
DefaultAnnotationAttributeExtractor attributeExtractor =
1278
1278
new DefaultAnnotationAttributeExtractor (annotation , annotatedElement );
1279
1279
InvocationHandler handler = new SynthesizedAnnotationInvocationHandler (attributeExtractor );
1280
- A synthesizedAnnotation = (A ) Proxy .newProxyInstance (ClassUtils .getDefaultClassLoader (),
1280
+ return (A ) Proxy .newProxyInstance (ClassUtils .getDefaultClassLoader (),
1281
1281
new Class <?>[] {(Class <A >) annotationType , SynthesizedAnnotation .class }, handler );
1282
-
1283
- return synthesizedAnnotation ;
1284
1282
}
1285
1283
1286
1284
/**
@@ -1325,10 +1323,8 @@ public static <A extends Annotation> A synthesizeAnnotation(Map<String, Object>
1325
1323
MapAnnotationAttributeExtractor attributeExtractor =
1326
1324
new MapAnnotationAttributeExtractor (attributes , annotationType , annotatedElement );
1327
1325
InvocationHandler handler = new SynthesizedAnnotationInvocationHandler (attributeExtractor );
1328
- A synthesizedAnnotation = (A ) Proxy .newProxyInstance (ClassUtils .getDefaultClassLoader (),
1326
+ return (A ) Proxy .newProxyInstance (ClassUtils .getDefaultClassLoader (),
1329
1327
new Class <?>[] {annotationType , SynthesizedAnnotation .class }, handler );
1330
-
1331
- return synthesizedAnnotation ;
1332
1328
}
1333
1329
1334
1330
/**
0 commit comments