We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637b638 commit 89802cfCopy full SHA for 89802cf
spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java
@@ -441,14 +441,9 @@ public boolean equals(Object obj) {
441
if (!ObjectUtils.nullSafeEquals(getType(), other.getType())) {
442
return false;
443
}
444
- if (getAnnotations().length != other.getAnnotations().length) {
+ if (!Arrays.equals(getAnnotations(), other.getAnnotations())) {
445
446
447
- for (Annotation ann : getAnnotations()) {
448
- if (!ann.equals(other.getAnnotation(ann.annotationType()))) {
449
- return false;
450
- }
451
452
if (isCollection() || isArray()) {
453
return ObjectUtils.nullSafeEquals(getElementTypeDescriptor(), other.getElementTypeDescriptor());
454
0 commit comments