Ignore:
Timestamp:
2016-12-13T02:16:07+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S1066 - Collapsible "if" statements should be merged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java

    r10824 r11386  
    277277        for (int i = 0; i < colors.getRowCount(); ++i) {
    278278            String key = (String) colors.getValueAt(i, 0);
    279             if (Main.pref.putColor(key, (Color) colors.getValueAt(i, 1))) {
    280                 if (key.startsWith("mappaint.")) {
    281                     ret = true;
    282                 }
     279            if (Main.pref.putColor(key, (Color) colors.getValueAt(i, 1)) && key.startsWith("mappaint.")) {
     280                ret = true;
    283281            }
    284282        }
Note: See TracChangeset for help on using the changeset viewer.