mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-29 08:13:53 +00:00
Merge pull request #1172 from amaembo/patch-1
Fix poorly distributed hashCode in Position.java
This commit is contained in:
commit
7a6261f00a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user