Skip to content

Commit 387c8a8

Browse files
committedDec 18, 2015
Differentiate between TypeDescriptors with same annotations but different attributes
Issue: SPR-13714
1 parent 06056e6 commit 387c8a8

File tree

3 files changed

+399
-298
lines changed

3 files changed

+399
-298
lines changed
 

Diff for: ‎spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public boolean equals(Object obj) {
468468
return false;
469469
}
470470
for (Annotation ann : getAnnotations()) {
471-
if (!other.hasAnnotation(ann.annotationType())) {
471+
if (!ann.equals(other.getAnnotation(ann.annotationType()))) {
472472
return false;
473473
}
474474
}

0 commit comments

Comments
 (0)
Please sign in to comment.