File tree 1 file changed +6
-2
lines changed
spring-core/src/main/java/org/springframework/core/annotation
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 57
57
* <ul>
58
58
* <li><strong>Explicit aliases within an annotation</strong>:
59
59
* <ol>
60
- * <li>Each attribute that makes up an aliased pair must be annotated with
60
+ * <li>Each attribute that makes up an aliased pair should be annotated with
61
61
* {@code @AliasFor}, and either {@link #attribute} or {@link #value} must
62
- * reference the <em>other</em> attribute in the pair.</li>
62
+ * reference the <em>other</em> attribute in the pair. Since Spring Framework
63
+ * 5.2.1 it is technically possible to annotate only one of the attributes in an
64
+ * aliased pair; however, it is recommended to annotate both attributes in an
65
+ * aliased pair for better documentation as well as compatibility with previous
66
+ * versions of the Spring Framework.</li>
63
67
* <li>Aliased attributes must declare the same return type.</li>
64
68
* <li>Aliased attributes must declare a default value.</li>
65
69
* <li>Aliased attributes must declare the same default value.</li>
You can’t perform that action at this time.
0 commit comments