File tree 1 file changed +5
-2
lines changed
spring-core/src/main/java/org/springframework/core/annotation
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
74
74
* <ol>
75
75
* <li>The attribute that is an alias for an attribute in a meta-annotation
76
76
* must be annotated with {@code @AliasFor}, and {@link #attribute} must
77
- * reference the attribute in the meta-annotation.</li>
77
+ * reference the attribute in the meta-annotation (unless both attributes have
78
+ * the same name).</li>
78
79
* <li>Aliased attributes must declare the same return type.</li>
79
80
* <li>{@link #annotation} must reference the meta-annotation.</li>
80
81
* <li>The referenced meta-annotation must be <em>meta-present</em> on the
191
192
192
193
/**
193
194
* The name of the attribute that <em>this</em> attribute is an alias for.
195
+ * <p>May be omitted if this attribute is an alias for an attribute in a
196
+ * meta-annotation and both attributes have the same name.
194
197
* @see #value
195
198
*/
196
199
@ AliasFor ("value" )
You can’t perform that action at this time.
0 commit comments