master
Juergen Hoeller 11 years ago
parent c1eac209c3
commit a537eb3a6a
  1. 8
      spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

@ -461,17 +461,17 @@ public class TypeDescriptor implements Serializable {
if (getAnnotations().length != other.getAnnotations().length) { if (getAnnotations().length != other.getAnnotations().length) {
return false; return false;
} }
for (Annotation ann : this.getAnnotations()) { for (Annotation ann : getAnnotations()) {
if (other.getAnnotation(ann.annotationType()) == null) { if (other.getAnnotation(ann.annotationType()) == null) {
return false; return false;
} }
} }
if (isCollection() || isArray()) { if (isCollection() || isArray()) {
return ObjectUtils.nullSafeEquals(this.getElementTypeDescriptor(), other.getElementTypeDescriptor()); return ObjectUtils.nullSafeEquals(getElementTypeDescriptor(), other.getElementTypeDescriptor());
} }
else if (isMap()) { else if (isMap()) {
return ObjectUtils.nullSafeEquals(this.getMapKeyTypeDescriptor(), other.getMapKeyTypeDescriptor()) && return ObjectUtils.nullSafeEquals(getMapKeyTypeDescriptor(), other.getMapKeyTypeDescriptor()) &&
ObjectUtils.nullSafeEquals(this.getMapValueTypeDescriptor(), other.getMapValueTypeDescriptor()); ObjectUtils.nullSafeEquals(getMapValueTypeDescriptor(), other.getMapValueTypeDescriptor());
} }
else { else {
return true; return true;

Loading…
Cancel
Save