Skip to content

Commit

Permalink
Merge pull request #42759 from franz1981/jar_res_hash_code
Browse files Browse the repository at this point in the history
Save Objects::hash varargs array allocation on JarResource::hashCode
  • Loading branch information
gastaldi authored Aug 27, 2024
2 parents 60994bf + 3a1ac4b commit b127fdd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass())
return false;
JarResource that = (JarResource) o;
return Objects.equals(manifestInfo, that.manifestInfo) && jarPath.equals(that.jarPath);
return jarPath.equals(that.jarPath);
}

@Override
public int hashCode() {
return Objects.hash(manifestInfo, jarPath);
return Objects.hashCode(jarPath);
}
}

0 comments on commit b127fdd

Please sign in to comment.