Changeset 4868 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionListItem.java
- Timestamp:
- 2012-01-24T21:28:35+01:00 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 3 3 build 4 4 plugin-check 5 findbugs-josm.xml
-
- Property svn:ignore
-
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionListItem.java
r3215 r4868 90 90 int result = 1; 91 91 result = prime * result 92 + ((priority == null) ? 0 : priority.hashCode());92 + ((priority == null) ? 0 : priority.hashCode()); 93 93 result = prime * result + ((value == null) ? 0 : value.hashCode()); 94 94 return result; … … 117 117 118 118 public int compareTo(AutoCompletionListItem other) { 119 int ret = this.priority.compareTo(other.priority); 120 ret = -ret; // higher priority items come first in the list 119 int ret = other.priority.compareTo(priority); // higher priority items come first in the list 121 120 if (ret != 0) 122 121 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.