Skip to content

Commit c13f689

Browse files
committed
Document isSynthesizable() in AnnotationUtils
Issue: SPR-11512
1 parent 7f22f09 commit c13f689

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,19 @@ private static Map<String, String> getAttributeAliasMap(Class<? extends Annotati
11101110
}
11111111

11121112
/**
1113-
* TODO Document isSynthesizable().
1113+
* Determine if annotations of the supplied {@code annotationType} are
1114+
* <em>synthesizable</em> (i.e., in need of being wrapped in a dynamic
1115+
* proxy that provides functionality above that of a standard JDK
1116+
* annotation).
1117+
*
1118+
* <p>Specifically, an annotation is <em>synthesizable</em> if it declares
1119+
* any attributes that are configured as <em>aliased pairs</em> via
1120+
* {@link AliasFor @AliasFor} or if any nested annotations used by the
1121+
* annotation declare such <em>aliased pairs</em>.
1122+
*
11141123
* @since 4.2
1124+
* @see SynthesizedAnnotation
1125+
* @see SynthesizedAnnotationInvocationHandler
11151126
*/
11161127
@SuppressWarnings("unchecked")
11171128
private static boolean isSynthesizable(Class<? extends Annotation> annotationType) {

0 commit comments

Comments
 (0)