gianm commented on a change in pull request #8381: Fix inconsistent equals and
hashCode
URL: https://github.com/apache/incubator-druid/pull/8381#discussion_r317020241
##########
File path:
extensions-core/stats/src/main/java/org/apache/druid/query/aggregation/variance/StandardDeviationPostAggregator.java
##########
@@ -150,4 +150,10 @@ public boolean equals(Object o)
return true;
}
+
+ @Override
+ public int hashCode()
+ {
+ return Objects.hash(getName(), getFieldName(), getEstimator(),
isVariancePop);
Review comment:
Might as well use direct field accesses, to match what `equals` does.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]