Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java

    r8509 r8510  
    6666        gc.anchor = GridBagConstraints.NORTHWEST;
    6767        gc.fill = GridBagConstraints.HORIZONTAL;
    68         gc.weightx  =1.0;
     68        gc.weightx = 1.0;
    6969
    7070        ButtonGroup bgVersionBasedUpdatePolicy = new ButtonGroup();
     
    8484        JMultilineLabel lbl = new JMultilineLabel(
    8585                tr("Please decide whether JOSM shall automatically update active plugins at startup after an update of JOSM itself."));
    86         gc.gridy=0;
     86        gc.gridy = 0;
    8787        pnl.add(lbl, gc);
    8888        for (Policy p: Policy.values()) {
     
    107107        gc.anchor = GridBagConstraints.NORTHWEST;
    108108        gc.fill = GridBagConstraints.HORIZONTAL;
    109         gc.weightx  =1.0;
     109        gc.weightx = 1.0;
    110110
    111111        TimeBasedPolicyChangeListener changeListener = new TimeBasedPolicyChangeListener();
     
    130130        JMultilineLabel lbl = new JMultilineLabel(
    131131                tr("Please decide whether JOSM shall automatically update active plugins after a certain period of time."));
    132         gc.gridy=0;
     132        gc.gridy = 0;
    133133        pnl.add(lbl, gc);
    134134        for (Policy p: Policy.values()) {
     
    146146        gc.anchor = GridBagConstraints.NORTHWEST;
    147147        gc.fill = GridBagConstraints.HORIZONTAL;
    148         gc.weightx  =1.0;
    149         gc.insets = new Insets(5,5,10,5);
     148        gc.weightx = 1.0;
     149        gc.insets = new Insets(5, 5, 10, 5);
    150150
    151151        add(buildVersionBasedUpdatePolicyPanel(), gc);
     
    194194            try {
    195195                days = Integer.parseInt(pref);
    196             } catch(NumberFormatException e) {
     196            } catch (NumberFormatException e) {
    197197                // ignore - load from preference pluginmanager.time-based-update.interval
    198198            }
     
    238238                days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL;
    239239            }
    240         } catch(NumberFormatException e) {
     240        } catch (NumberFormatException e) {
    241241            days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL;
    242242        }
Note: See TracChangeset for help on using the changeset viewer.