Ignore:
Timestamp:
2014-02-27T01:41:49+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (JLS order)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java

    r6529 r6889  
    253253     * Combobox with all projections available
    254254     */
    255     private JosmComboBox projectionCombo = new JosmComboBox(projectionChoices.toArray());
     255    private final JosmComboBox projectionCombo = new JosmComboBox(projectionChoices.toArray());
    256256
    257257    /**
    258258     * Combobox with all coordinate display possibilities
    259259     */
    260     private JosmComboBox coordinatesCombo = new JosmComboBox(CoordinateFormat.values());
    261 
    262     private JosmComboBox unitsCombo = new JosmComboBox(unitsValuesTr);
     260    private final JosmComboBox coordinatesCombo = new JosmComboBox(CoordinateFormat.values());
     261
     262    private final JosmComboBox unitsCombo = new JosmComboBox(unitsValuesTr);
    263263
    264264    /**
     
    281281     * This is the panel holding all projection preferences
    282282     */
    283     private JPanel projPanel = new JPanel(new GridBagLayout());
     283    private final JPanel projPanel = new JPanel(new GridBagLayout());
    284284
    285285    /**
     
    288288     * in sync
    289289     */
    290     static private GBC projSubPrefPanelGBC = GBC.std().fill(GBC.BOTH).weight(1.0, 1.0);
     290    private static final GBC projSubPrefPanelGBC = GBC.std().fill(GBC.BOTH).weight(1.0, 1.0);
    291291
    292292    @Override
     
    380380    }
    381381
    382     static public void setProjection() {
     382    public static void setProjection() {
    383383        setProjection(PROP_PROJECTION.get(), PROP_SUB_PROJECTION.get());
    384384    }
    385385
    386     static public void setProjection(String id, Collection<String> pref) {
     386    public static void setProjection(String id, Collection<String> pref) {
    387387        ProjectionChoice pc = projectionChoicesById.get(id);
    388388
Note: See TracChangeset for help on using the changeset viewer.