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

Use final were appropriate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r4773 r4869  
    171171    // hook for roadsigns plugin to display a small
    172172    // button in the upper right corner of this dialog
    173     public static JPanel pluginHook = new JPanel();
     173    public static final JPanel pluginHook = new JPanel();
    174174
    175175    private JPopupMenu propertyMenu;
     
    279279                boolean c1 = m.containsKey(o1.getValue());
    280280                boolean c2 = m.containsKey(o2.getValue());
    281                 if (c1 == c2) {
     281                if (c1 == c2)
    282282                    return String.CASE_INSENSITIVE_ORDER.compare(o1.getValue(), o2.getValue());
    283                 } else if (c1) {
     283                else if (c1)
    284284                    return -1;
    285                 } else {
     285                else
    286286                    return +1;
    287                 }
    288287            }
    289288        };
     
    10511050            for (int row : rows) {
    10521051                String key = propertyData.getValueAt(row, 0).toString();
    1053                 if (row == nextKeyIndex + 1)
     1052                if (row == nextKeyIndex + 1) {
    10541053                    nextKeyIndex = row; // no gap yet
     1054                }
    10551055                tags.put(key, null);
    10561056            }
     
    10601060            int rowCount = propertyData.getRowCount();
    10611061            if (rowCount > rows.length) {
    1062                 if (nextKeyIndex == rows[rows.length-1])
     1062                if (nextKeyIndex == rows[rows.length-1]) {
    10631063                    // no gap found, pick next or previous key in list
    10641064                    nextKeyIndex = (nextKeyIndex + 1 < rowCount ? nextKeyIndex + 1 : rows[0] - 1);
    1065                 else
     1065                } else {
    10661066                    // gap found
    10671067                    nextKeyIndex++;
     1068                }
    10681069                nextKey = (String)propertyData.getValueAt(nextKeyIndex, 0);
    10691070            }
Note: See TracChangeset for help on using the changeset viewer.