Skip to content

Commit 07960d4

Browse files
committed
Polishing
1 parent 07cfcbc commit 07960d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ private void addConventionMappings() {
271271
int[] mappings = this.conventionMappings;
272272
for (int i = 0; i < mappings.length; i++) {
273273
String name = this.attributes.get(i).getName();
274-
MirrorSet mirrors = getMirrorSets().getAssigned(i);
275274
int mapped = rootAttributes.indexOf(name);
276275
if (!MergedAnnotation.VALUE.equals(name) && mapped != -1) {
277276
mappings[i] = mapped;
277+
MirrorSet mirrors = getMirrorSets().getAssigned(i);
278278
if (mirrors != null) {
279279
for (int j = 0; j < mirrors.size(); j++) {
280280
mappings[mirrors.getAttributeIndex(j)] = mapped;
@@ -518,7 +518,6 @@ Object getMappedAnnotationValue(int attributeIndex, boolean metaAnnotationsOnly)
518518
* @return {@code true} if the value is equivalent to the default value
519519
*/
520520
boolean isEquivalentToDefaultValue(int attributeIndex, Object value, ValueExtractor valueExtractor) {
521-
522521
Method attribute = this.attributes.get(attributeIndex);
523522
return isEquivalentToDefaultValue(attribute, value, valueExtractor);
524523
}

0 commit comments

Comments
 (0)