Fixed hash code assignment
This commit is contained in:
parent
f39d6d097d
commit
f89f3c1aaa
1 changed files with 5 additions and 5 deletions
|
@ -41,11 +41,11 @@ public abstract class SynchronizedData<T extends SynchronizedData<T>>
|
||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
int code = 1;
|
int code = 1;
|
||||||
code = 31 * locations.hashCode();
|
code = 31 * code + locations.hashCode();
|
||||||
code = 31 * volLength;
|
code = 31 * code + volLength;
|
||||||
code = 31 * volWidth;
|
code = 31 * code + volWidth;
|
||||||
code = 31 * volHeight;
|
code = 31 * code + volHeight;
|
||||||
code = 31 * volume;
|
code = 31 * code + volume;
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue