Ignore:
Timestamp:
2017-04-01T23:27:46+02:00 (7 years ago)
Author:
Don-vip
Message:

findbugs - EI_EXPOSE_REP2 - Note dates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NoteSortDialog.java

    r9078 r11821  
    1515import org.openstreetmap.josm.Main;
    1616import org.openstreetmap.josm.data.notes.Note;
    17 import org.openstreetmap.josm.data.osm.NoteData;
    1817
    1918/**
     
    4342    public void showSortDialog(Comparator<Note> currentSortMode) {
    4443        JLabel label = new JLabel(tr("Select note sorting method"));
    45         if (currentSortMode == NoteData.DEFAULT_COMPARATOR) {
     44        if (currentSortMode == Note.DEFAULT_COMPARATOR) {
    4645            defaultSort.setSelected(true);
    47         } else if (currentSortMode == NoteData.DATE_COMPARATOR) {
     46        } else if (currentSortMode == Note.DATE_COMPARATOR) {
    4847            dateSort.setSelected(true);
    49         } else if (currentSortMode == NoteData.USER_COMPARATOR) {
     48        } else if (currentSortMode == Note.USER_COMPARATOR) {
    5049            userSort.setSelected(true);
    51         } else if (currentSortMode == NoteData.LAST_ACTION_COMPARATOR) {
     50        } else if (currentSortMode == Note.LAST_ACTION_COMPARATOR) {
    5251            lastActionSort.setSelected(true);
    5352        } else {
     
    7776    public Comparator<Note> getSelectedComparator() {
    7877        if (dateSort.isSelected()) {
    79             return NoteData.DATE_COMPARATOR;
     78            return Note.DATE_COMPARATOR;
    8079        } else if (userSort.isSelected()) {
    81             return NoteData.USER_COMPARATOR;
     80            return Note.USER_COMPARATOR;
    8281        } else if (lastActionSort.isSelected()) {
    83             return NoteData.LAST_ACTION_COMPARATOR;
     82            return Note.LAST_ACTION_COMPARATOR;
    8483        } else {
    85             return NoteData.DEFAULT_COMPARATOR;
     84            return Note.DEFAULT_COMPARATOR;
    8685        }
    8786    }
Note: See TracChangeset for help on using the changeset viewer.