Polishing
This commit is contained in:
parent
c1eac209c3
commit
a537eb3a6a
|
|
@ -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…
Reference in New Issue