From 42434565904b94d73d75c6dcdde7ed799933ce11 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 13 Sep 2023 17:14:46 +0200 Subject: [PATCH] Fix deprecation in Spring Framework --- .../boot/context/properties/bind/Bindable.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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