Skip to content

Commit

Permalink
Use Objects.hashCode instead of Objects.hash to avoid vararg array cr…
Browse files Browse the repository at this point in the history
…eation (fixes #849)
  • Loading branch information
turbanoff authored and gnodet committed Aug 1, 2023
1 parent ccfb8c5 commit db731c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/reader/Candidate.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(value);
return Objects.hashCode(value);
}

@Override
Expand Down

0 comments on commit db731c2

Please sign in to comment.