Skip to content

Commit fd1b481

Browse files
author
Phillip Webb
committed
Polish
1 parent bb5a53f commit fd1b481

File tree

1 file changed

+8
-8
lines changed
  • spring-core/src/main/java/org/springframework/core/convert

1 file changed

+8
-8
lines changed

spring-core/src/main/java/org/springframework/core/convert/Property.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ private Class<?> declaringClass() {
245245
public int hashCode() {
246246
final int prime = 31;
247247
int hashCode = 1;
248-
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(objectType);
249-
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(readMethod);
250-
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(writeMethod);
251-
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(name);
248+
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.objectType);
249+
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.readMethod);
250+
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.writeMethod);
251+
hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.name);
252252
return hashCode;
253253
}
254254

@@ -265,10 +265,10 @@ public boolean equals(Object obj) {
265265
}
266266
Property other = (Property) obj;
267267
boolean equals = true;
268-
equals &= ObjectUtils.nullSafeEquals(objectType, other.objectType);
269-
equals &= ObjectUtils.nullSafeEquals(readMethod, other.readMethod);
270-
equals &= ObjectUtils.nullSafeEquals(writeMethod, other.writeMethod);
271-
equals &= ObjectUtils.nullSafeEquals(name, other.name);
268+
equals &= ObjectUtils.nullSafeEquals(this.objectType, other.objectType);
269+
equals &= ObjectUtils.nullSafeEquals(this.readMethod, other.readMethod);
270+
equals &= ObjectUtils.nullSafeEquals(this.writeMethod, other.writeMethod);
271+
equals &= ObjectUtils.nullSafeEquals(this.name, other.name);
272272
return equals;
273273
}
274274
}

0 commit comments

Comments
 (0)