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/IconToggleButton.java

    r10384 r11386  
    7979    String getPreferenceKey() {
    8080        String s = (String) getSafeActionValue("toolbar");
    81         if (s == null) {
    82             if (getAction() != null) {
    83                 s = getAction().getClass().getName();
    84             }
     81        if (s == null && getAction() != null) {
     82            s = getAction().getClass().getName();
    8583        }
    8684        return "sidetoolbar.hidden."+s;
    87 
    8885    }
    8986
Note: See TracChangeset for help on using the changeset viewer.