Deserialized type's hashCode() should compute everything

This commit is contained in:
Alexander Udalov
2013-06-20 22:13:21 +04:00
parent 6f466b70b0
commit 06496ea3ed
@@ -279,8 +279,8 @@ public class TypeDeserializer {
@Override @Override
public int hashCode() { public int hashCode() {
int result = constructor != null ? constructor.hashCode() : 0; int result = getConstructor().hashCode();
result = 31 * result + arguments.hashCode(); result = 31 * result + getArguments().hashCode();
result = 31 * result + (isNullable() ? 1 : 0); result = 31 * result + (isNullable() ? 1 : 0);
return result; return result;
} }