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/conflict/tags/TagConflictResolver.java

    r9543 r10179  
    2121 * This is a UI widget for resolving tag conflicts, i.e. differences of the tag values
    2222 * of multiple {@link org.openstreetmap.josm.data.osm.OsmPrimitive}s.
    23  *
    24  *
     23 * @since 2008
    2524 */
    2625public class TagConflictResolver extends JPanel {
     
    2928    private final TagConflictResolverModel model;
    3029    /** selects whether only tags with conflicts are displayed */
    31     private JCheckBox cbShowTagsWithConflictsOnly;
    32     private JCheckBox cbShowTagsWithMultiValuesOnly;
     30    private final JCheckBox cbShowTagsWithConflictsOnly = new JCheckBox(tr("Show tags with conflicts only"));
     31    private final JCheckBox cbShowTagsWithMultiValuesOnly = new JCheckBox(tr("Show tags with multiple values only"));
     32
     33    /**
     34     * Constructs a new {@code TagConflictResolver}.
     35     */
     36    public TagConflictResolver() {
     37        this.model = new TagConflictResolverModel();
     38        build();
     39    }
    3340
    3441    protected JPanel buildInfoPanel() {
     
    4754        gc.fill = GridBagConstraints.HORIZONTAL;
    4855        gc.weighty = 0.0;
    49         pnl.add(cbShowTagsWithConflictsOnly = new JCheckBox(tr("Show tags with conflicts only")), gc);
    50         pnl.add(cbShowTagsWithMultiValuesOnly = new JCheckBox(tr("Show tags with multiple values only")), gc);
     56        pnl.add(cbShowTagsWithConflictsOnly, gc);
     57        pnl.add(cbShowTagsWithMultiValuesOnly, gc);
    5158        cbShowTagsWithConflictsOnly.addChangeListener(
    5259                new ChangeListener() {
     
    9299
    93100    /**
    94      * Constructs a new {@code TagConflictResolver}.
    95      */
    96     public TagConflictResolver() {
    97         this.model = new TagConflictResolverModel();
    98         build();
    99     }
    100 
    101     /**
    102101     * Replies the model used by this dialog
    103102     *
Note: See TracChangeset for help on using the changeset viewer.