Skip to content

Commit 74a71b0

Browse files
committed
Merge pull request #9608 from izeye:patch-22
* pr/9608: Remove redundant hash code for the same field
2 parents 4c29a8c + 4dee630 commit 74a71b0

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)