1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-06 10:20:54 +00:00

Merge pull request #1172 from amaembo/patch-1

Fix poorly distributed hashCode in Position.java
This commit is contained in:
PlantUML 2022-10-29 13:45:25 +02:00 committed by GitHub
commit 7a6261f00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ public class Position {
@Override
public int hashCode() {
return xmin + ymin << 8 + xmax << 16 + ymax << 24;
return xmin + (ymin << 8) + (xmax << 16) + (ymax << 24);
}
@Override