Changeset 9371 in josm for trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
- Timestamp:
- 2016-01-09T23:20:37+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
r8510 r9371 93 93 @Override 94 94 public int hashCode() { 95 int hash = 5; 96 hash = 47 * hash + Objects.hashCode(this.coords); 97 return hash; 95 return Objects.hash(coords); 98 96 } 99 97 100 98 @Override 101 99 public boolean equals(Object obj) { 102 if (obj == null) { 103 return false; 104 } 105 if (getClass() != obj.getClass()) { 106 return false; 107 } 108 final Shape other = (Shape) obj; 109 if (!Objects.equals(this.coords, other.coords)) { 110 return false; 111 } 112 return true; 100 if (this == obj) return true; 101 if (obj == null || getClass() != obj.getClass()) return false; 102 Shape shape = (Shape) obj; 103 return Objects.equals(coords, shape.coords); 113 104 } 114 105 }
Note:
See TracChangeset
for help on using the changeset viewer.