Ignore:
Timestamp:
2017-04-13T01:08:58+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S1126 - Return of boolean expressions should not be wrapped into an "if-then-else" statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileSourceDisplaySettings.java

    r11746 r11893  
    295295        if (this == obj)
    296296            return true;
    297         if (obj == null)
    298             return false;
    299         if (getClass() != obj.getClass())
     297        if (obj == null || getClass() != obj.getClass())
    300298            return false;
    301299        TileSourceDisplaySettings other = (TileSourceDisplaySettings) obj;
    302         if (autoLoad != other.autoLoad)
    303             return false;
    304         if (autoZoom != other.autoZoom)
    305             return false;
    306         if (showErrors != other.showErrors)
    307             return false;
    308         return true;
     300        return autoLoad == other.autoLoad
     301            && autoZoom == other.autoZoom
     302            && showErrors == other.showErrors;
    309303    }
    310304
Note: See TracChangeset for help on using the changeset viewer.