Skip to content

Commit 929f739

Browse files
committed
Returning Objects.hash() from BlobIdentityDecorator.hashCode()
1 parent 7f7ba7e commit 929f739

File tree

1 file changed

+1
-9
lines changed
  • ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers

1 file changed

+1
-9
lines changed

ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/JobState.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,7 @@ public boolean equals(final Object o) {
111111

112112
@Override
113113
public int hashCode() {
114-
int result = bucket != null ? bucket.hashCode() : 0;
115-
result = 31 * result + (id != null ? id.hashCode() : 0);
116-
result = 31 * result + (latest ? 1 : 0);
117-
result = 31 * result + (int) (length ^ (length >>> 32));
118-
result = 31 * result + (name != null ? name.hashCode() : 0);
119-
result = 31 * result + (int) (offset ^ (offset >>> 32));
120-
result = 31 * result + (physicalPlacement != null ? physicalPlacement.hashCode() : 0);
121-
result = 31 * result + (int) (version ^ (version >>> 32));
122-
return result;
114+
return java.util.Objects.hash(bucket, id, latest, length, name, offset, physicalPlacement, version);
123115
}
124116

125117
@Override

0 commit comments

Comments
 (0)