Skip to content

Commit 4dee630

Browse files
izeyesnicoll
authored andcommitted
Remove redundant hash code for the same field
Closes gh-9608
1 parent 4c29a8c commit 4dee630

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-boot/src/main/java/org/springframework/boot/origin/SystemEnvironmentOrigin.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ public String toString() {
4747

4848
@Override
4949
public int hashCode() {
50-
int result = ObjectUtils.nullSafeHashCode(this.property);
51-
result = 31 * result + ObjectUtils.nullSafeHashCode(this.property);
52-
return result;
50+
return ObjectUtils.nullSafeHashCode(this.property);
5351
}
5452

5553
@Override

0 commit comments

Comments
 (0)