Skip to content

Commit

Permalink
should hash PathString as a array
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Oct 15, 2023
1 parent 844ff85 commit 3ae80c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
String[] thisPath = this.pathString.getPath();
String[] lowerPath = new String[thisPath.length];
Object[] lowerPath = new String[thisPath.length];
for (int i = 0; i < thisPath.length; i++) {
lowerPath[i] = thisPath[i].toLowerCase();
}
return Objects.hash((Object) lowerPath);
return Objects.hash(lowerPath);
}
}

0 comments on commit 3ae80c7

Please sign in to comment.