Ignore:
Timestamp:
2016-05-11T02:44:10+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:AssignmentInSubExpressionCheck - Assignments should not be made from within sub-expressions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r10134 r10179  
    7979    private ImageryLayerInfo layerInfo;
    8080
    81     private CommonSettingsPanel commonSettings;
    82     private WMSSettingsPanel wmsSettings;
    83     private TMSSettingsPanel tmsSettings;
     81    private final CommonSettingsPanel commonSettings = new CommonSettingsPanel();
     82    private final WMSSettingsPanel wmsSettings = new WMSSettingsPanel();
     83    private final TMSSettingsPanel tmsSettings = new TMSSettingsPanel();
    8484
    8585    /**
     
    115115        p.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    116116
    117         addSettingsSection(p, tr("Common Settings"), commonSettings = new CommonSettingsPanel());
    118         addSettingsSection(p, tr("WMS Settings"), wmsSettings = new WMSSettingsPanel(),
     117        addSettingsSection(p, tr("Common Settings"), commonSettings);
     118        addSettingsSection(p, tr("WMS Settings"), wmsSettings,
    119119                GBC.eol().fill(GBC.HORIZONTAL));
    120         addSettingsSection(p, tr("TMS Settings"), tmsSettings = new TMSSettingsPanel(),
     120        addSettingsSection(p, tr("TMS Settings"), tmsSettings,
    121121                GBC.eol().fill(GBC.HORIZONTAL));
    122122
Note: See TracChangeset for help on using the changeset viewer.