Ignore:
Timestamp:
2016-05-11T02:44:10+02:00 (4 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/plugins/PluginHandler.java

    r10143 r10179  
    14931493
    14941494    private static class UpdatePluginsMessagePanel extends JPanel {
    1495         private JMultilineLabel lblMessage;
    1496         private JCheckBox cbDontShowAgain;
     1495        private final JMultilineLabel lblMessage = new JMultilineLabel("");
     1496        private final JCheckBox cbDontShowAgain = new JCheckBox(
     1497                tr("Do not ask again and remember my decision (go to Preferences->Plugins to change it later)"));
     1498
     1499        UpdatePluginsMessagePanel() {
     1500            build();
     1501        }
    14971502
    14981503        protected final void build() {
     
    15041509            gc.weighty = 1.0;
    15051510            gc.insets = new Insets(5, 5, 5, 5);
    1506             add(lblMessage = new JMultilineLabel(""), gc);
     1511            add(lblMessage, gc);
    15071512            lblMessage.setFont(lblMessage.getFont().deriveFont(Font.PLAIN));
    15081513
     
    15101515            gc.fill = GridBagConstraints.HORIZONTAL;
    15111516            gc.weighty = 0.0;
    1512             add(cbDontShowAgain = new JCheckBox(
    1513                     tr("Do not ask again and remember my decision (go to Preferences->Plugins to change it later)")), gc);
     1517            add(cbDontShowAgain, gc);
    15141518            cbDontShowAgain.setFont(cbDontShowAgain.getFont().deriveFont(Font.PLAIN));
    1515         }
    1516 
    1517         UpdatePluginsMessagePanel() {
    1518             build();
    15191519        }
    15201520
Note: See TracChangeset for help on using the changeset viewer.