Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/PrefEntry.java
r9759 r9906 105 105 106 106 @Override 107 public int hashCode() { 108 return 31 + ((key == null) ? 0 : key.hashCode()); 109 } 110 111 @Override 112 public boolean equals(Object obj) { 113 if (this == obj) 114 return true; 115 if (obj == null) 116 return false; 117 if (getClass() != obj.getClass()) 118 return false; 119 PrefEntry other = (PrefEntry) obj; 120 if (key == null) { 121 if (other.key != null) 122 return false; 123 } else if (!key.equals(other.key)) 124 return false; 125 return true; 126 } 127 128 @Override 107 129 public String toString() { 108 130 return value.toString();
Note:
See TracChangeset
for help on using the changeset viewer.