File tree 1 file changed +4
-4
lines changed
spring-core/src/main/java/org/springframework/core/annotation 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 60
60
* <li><strong>Aliases within an annotation</strong>:
61
61
* <ol>
62
62
* <li>Each attribute that makes up an aliased pair must be annotated with
63
- * {@code @AliasFor}, and the {@link #attribute} must reference the
64
- * <em>other</em> attribute in the pair.</li>
63
+ * {@code @AliasFor}, and either the {@link #attribute} or the {@link #value}
64
+ * attribute must reference the <em>other</em> attribute in the pair.</li>
65
65
* <li>Aliased attributes must declare the same return type.</li>
66
66
* <li>Aliased attributes must declare a default value.</li>
67
67
* <li>Aliased attributes must declare the same default value.</li>
84
84
* <h3>Example: Aliases within an Annotation</h3>
85
85
* <pre class="code"> public @interface ContextConfiguration {
86
86
*
87
- * @AliasFor(attribute = "locations")
87
+ * @AliasFor("locations")
88
88
* String[] value() default {};
89
89
*
90
- * @AliasFor(attribute = "value")
90
+ * @AliasFor("value")
91
91
* String[] locations() default {};
92
92
*
93
93
* // ...
You can’t perform that action at this time.
0 commit comments