Use JDK hashCode() variants for primitives

See gh-8768
This commit is contained in:
dreis
2017-03-28 19:36:03 +02:00
committed by Stephane Nicoll
parent aa4051727b
commit f3bbbc4530
4 changed files with 7 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ class MockDefinition extends Definition {
result = MULTIPLIER * result + ObjectUtils.nullSafeHashCode(this.typeToMock);
result = MULTIPLIER * result + ObjectUtils.nullSafeHashCode(this.extraInterfaces);
result = MULTIPLIER * result + ObjectUtils.nullSafeHashCode(this.answer);
result = MULTIPLIER * result + (this.serializable ? 1231 : 1237);
result = MULTIPLIER * result + Boolean.hashCode(this.serializable);
return result;
}