Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (4 weeks ago)
Author:
taylor.smock
Message:

Revert most var changes from r19048, fix most new compile warnings and checkstyle issues

Also, document why various ErrorProne checks were originally disabled and fix
generic SonarLint issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r18833 r19050  
    501501        //
    502502        String policy = Config.getPref().get(togglePreferenceKey, "ask").trim().toLowerCase(Locale.ENGLISH);
    503         switch(policy) {
     503        switch (policy) {
    504504        case "never":
    505505            if ("pluginmanager.version-based-update.policy".equals(togglePreferenceKey)) {
     
    552552
    553553        if (pnlMessage.isRememberDecision()) {
    554             switch(ret) {
     554            switch (ret) {
    555555            case 0:
    556556                Config.getPref().put(togglePreferenceKey, "always");
     
    16441644            + (!Utils.isEmpty(info.localversion) ? " Version: " + info.localversion : "");
    16451645            pluginTab.add(new JLabel(name), GBC.std());
    1646             pluginTab.add(Box.createHorizontalGlue(), GBC.std().fill(GBC.HORIZONTAL));
     1646            pluginTab.add(Box.createHorizontalGlue(), GBC.std().fill(GridBagConstraints.HORIZONTAL));
    16471647            pluginTab.add(new JButton(new PluginInformationAction(info)), GBC.eol());
    16481648
     
    16571657            description.setCaretPosition(0);
    16581658
    1659             pluginTab.add(description, GBC.eop().fill(GBC.HORIZONTAL));
     1659            pluginTab.add(description, GBC.eop().fill(GridBagConstraints.HORIZONTAL));
    16601660        }
    16611661        return pluginTab;
Note: See TracChangeset for help on using the changeset viewer.