From a06ec16fb5d9fc2396327c2aa5987ec7d2a08dc6 Mon Sep 17 00:00:00 2001 From: Andrey Turbanov Date: Sat, 1 Jul 2023 01:32:25 +0300 Subject: [PATCH] Use Objects.hashCode instead of Objects.hash to avoid vararg array creation --- reader/src/main/java/org/jline/reader/Candidate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reader/src/main/java/org/jline/reader/Candidate.java b/reader/src/main/java/org/jline/reader/Candidate.java index 65a816cb6..b27dd668f 100644 --- a/reader/src/main/java/org/jline/reader/Candidate.java +++ b/reader/src/main/java/org/jline/reader/Candidate.java @@ -188,7 +188,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(value); + return Objects.hashCode(value); } @Override