File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1919import com .fasterxml .jackson .dataformat .xml .annotation .JacksonXmlProperty ;
2020import com .spectralogic .ds3client .serializer .Views ;
2121
22+ import java .util .Objects ;
2223import java .util .UUID ;
2324
2425public class Ds3Object {
@@ -124,8 +125,8 @@ public boolean equals(final Object obj) {
124125 return false ;
125126 }
126127 final Ds3Object ds3Obj = (Ds3Object ) obj ;
127- return ds3Obj .getName (). equals ( this .getName ()) &&
128+ return Objects . equals ( ds3Obj .getName (), this .getName ()) &&
128129 ds3Obj .getSize () == this .getSize () &&
129- ds3Obj . getVersionId (). equals (this .getVersionId ());
130+ Objects . equals (ds3Obj . versionId , this .getVersionId ());
130131 }
131132}
You can’t perform that action at this time.
0 commit comments