From fd1b48139fc81edf354279129f13e89211719d1b Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 2 Dec 2013 21:34:55 -0800 Subject: [PATCH] Polish --- .../springframework/core/convert/Property.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/convert/Property.java b/spring-core/src/main/java/org/springframework/core/convert/Property.java index 11dc4ec4d8..0aa414012d 100644 --- a/spring-core/src/main/java/org/springframework/core/convert/Property.java +++ b/spring-core/src/main/java/org/springframework/core/convert/Property.java @@ -245,10 +245,10 @@ public final class Property { public int hashCode() { final int prime = 31; int hashCode = 1; - hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(objectType); - hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(readMethod); - hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(writeMethod); - hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(name); + hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.objectType); + hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.readMethod); + hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.writeMethod); + hashCode = prime * hashCode + ObjectUtils.nullSafeHashCode(this.name); return hashCode; } @@ -265,10 +265,10 @@ public final class Property { } Property other = (Property) obj; boolean equals = true; - equals &= ObjectUtils.nullSafeEquals(objectType, other.objectType); - equals &= ObjectUtils.nullSafeEquals(readMethod, other.readMethod); - equals &= ObjectUtils.nullSafeEquals(writeMethod, other.writeMethod); - equals &= ObjectUtils.nullSafeEquals(name, other.name); + equals &= ObjectUtils.nullSafeEquals(this.objectType, other.objectType); + equals &= ObjectUtils.nullSafeEquals(this.readMethod, other.readMethod); + equals &= ObjectUtils.nullSafeEquals(this.writeMethod, other.writeMethod); + equals &= ObjectUtils.nullSafeEquals(this.name, other.name); return equals; } } -- GitLab