Skip to content

Commit 6605a6b

Browse files
christophstroblmp911de
authored andcommitted
Move off deprecated API.
See #3305 Original pull request: #3307
1 parent cc344a1 commit 6605a6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/springframework/data/util/NullnessMethodInvocationValidator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import java.lang.annotation.ElementType;
2121
import java.lang.reflect.Method;
22+
import java.util.Arrays;
2223
import java.util.Map;
2324
import java.util.concurrent.ConcurrentHashMap;
2425

@@ -233,8 +234,8 @@ public boolean equals(@Nullable Object o) {
233234
@Override
234235
public int hashCode() {
235236
int result = (nullableReturn ? 1 : 0);
236-
result = (31 * result) + ObjectUtils.nullSafeHashCode(nullableParameters);
237-
result = (31 * result) + ObjectUtils.nullSafeHashCode(methodParameters);
237+
result = (31 * result) + Arrays.hashCode(nullableParameters);
238+
result = (31 * result) + Arrays.hashCode(methodParameters);
238239
return result;
239240
}
240241

0 commit comments

Comments
 (0)