Changeset 9371 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/StyleElementList.java
- Timestamp:
- 2016-01-09T23:20:37+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleElementList.java
r9284 r9371 57 57 @Override 58 58 public boolean equals(Object obj) { 59 if (obj == null || getClass() != obj.getClass()) { 60 return false; 61 } 62 final StyleElementList other = (StyleElementList) obj; 63 return Objects.equals(lst, other.lst); 59 if (this == obj) return true; 60 if (obj == null || getClass() != obj.getClass()) return false; 61 StyleElementList that = (StyleElementList) obj; 62 return Objects.equals(lst, that.lst); 64 63 } 65 64 66 65 @Override 67 66 public int hashCode() { 68 return lst.hashCode();67 return Objects.hash(lst); 69 68 } 70 71 69 }
Note:
See TracChangeset
for help on using the changeset viewer.
