|
|
@ -441,14 +441,9 @@ public class TypeDescriptor implements Serializable { |
|
|
|
if (!ObjectUtils.nullSafeEquals(getType(), other.getType())) { |
|
|
|
if (!ObjectUtils.nullSafeEquals(getType(), other.getType())) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (getAnnotations().length != other.getAnnotations().length) { |
|
|
|
if (!Arrays.equals(getAnnotations(), other.getAnnotations())) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
for (Annotation ann : getAnnotations()) { |
|
|
|
|
|
|
|
if (!ann.equals(other.getAnnotation(ann.annotationType()))) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (isCollection() || isArray()) { |
|
|
|
if (isCollection() || isArray()) { |
|
|
|
return ObjectUtils.nullSafeEquals(getElementTypeDescriptor(), other.getElementTypeDescriptor()); |
|
|
|
return ObjectUtils.nullSafeEquals(getElementTypeDescriptor(), other.getElementTypeDescriptor()); |
|
|
|
} |
|
|
|
} |
|
|
|