Ignore:
Timestamp:
2012-01-24T21:28:35+01:00 (12 years ago)
Author:
jttt
Message:

fix some warnings

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        33build
        44plugin-check
         5findbugs-josm.xml
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionListItem.java

    r3215 r4868  
    9090        int result = 1;
    9191        result = prime * result
    92         + ((priority == null) ? 0 : priority.hashCode());
     92                + ((priority == null) ? 0 : priority.hashCode());
    9393        result = prime * result + ((value == null) ? 0 : value.hashCode());
    9494        return result;
     
    117117
    118118    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
    121120        if (ret != 0)
    122121            return ret;
Note: See TracChangeset for help on using the changeset viewer.