File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spring-core/src/main/java/org/springframework/core/annotation Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6060 * <li><strong>Aliases within an annotation</strong>:
6161 * <ol>
6262 * <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>
6565 * <li>Aliased attributes must declare the same return type.</li>
6666 * <li>Aliased attributes must declare a default value.</li>
6767 * <li>Aliased attributes must declare the same default value.</li>
8484 * <h3>Example: Aliases within an Annotation</h3>
8585 * <pre class="code"> public @interface ContextConfiguration {
8686 *
87- * @AliasFor(attribute = "locations")
87+ * @AliasFor("locations")
8888 * String[] value() default {};
8989 *
90- * @AliasFor(attribute = "value")
90+ * @AliasFor("value")
9191 * String[] locations() default {};
9292 *
9393 * // ...
You can’t perform that action at this time.
0 commit comments