keith-turner commented on code in PR #6008:
URL: https://github.com/apache/accumulo/pull/6008#discussion_r2623964886
##########
core/src/main/java/org/apache/accumulo/core/data/LoadPlan.java:
##########
@@ -162,6 +162,33 @@ public byte[] getEndRow() {
public RangeType getRangeType() {
return rangeType;
}
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + Arrays.hashCode(endRow);
+ result = prime * result + Arrays.hashCode(startRow);
+ result = prime * result + Objects.hash(fileName, rangeType);
+ return result;
Review Comment:
Could simplify this to
```suggestion
return Objects.hash(Arrays.hashCode(endRow), Arrays.hashCode(startRow),
fileName, rangeType);
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]