Changeset 9371 in josm for trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
- Timestamp:
- 2016-01-09T23:20:37+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r9079 r9371 24 24 import java.util.List; 25 25 import java.util.Map; 26 import java.util.Objects; 26 27 import java.util.Set; 27 28 … … 677 678 @Override 678 679 public boolean equals(Object other) { 679 if ( !(other instanceof SearchSetting))680 681 SearchSetting o= (SearchSetting) other;682 return o.caseSensitive == this.caseSensitive683 && o.regexSearch == this.regexSearch684 && o.mapCSSSearch == this.mapCSSSearch685 && o.allElements == this.allElements686 && o.mode.equals(this.mode)687 && o.text.equals(this.text);680 if (this == other) return true; 681 if (other == null || getClass() != other.getClass()) return false; 682 SearchSetting that = (SearchSetting) other; 683 return caseSensitive == that.caseSensitive && 684 regexSearch == that.regexSearch && 685 mapCSSSearch == that.mapCSSSearch && 686 allElements == that.allElements && 687 Objects.equals(text, that.text) && 688 mode == that.mode; 688 689 } 689 690 690 691 @Override 691 692 public int hashCode() { 692 return text.hashCode();693 return Objects.hash(text, mode, caseSensitive, regexSearch, mapCSSSearch, allElements); 693 694 } 694 695
Note:
See TracChangeset
for help on using the changeset viewer.