diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java index d40937abb3..9e76a84e82 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java @@ -156,13 +156,7 @@ public final class Bindable { @Override public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ObjectUtils.nullSafeHashCode(this.type); - result = prime * result + ObjectUtils.nullSafeHashCode(this.annotations); - result = prime * result + ObjectUtils.nullSafeHashCode(this.bindRestrictions); - result = prime * result + ObjectUtils.nullSafeHashCode(this.bindMethod); - return result; + return ObjectUtils.nullSafeHash(this.type, this.annotations, this.bindRestrictions, this.bindMethod); } @Override