Ignore:
Timestamp:
2017-02-04T14:47:39+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:FCBL_FIELD_COULD_BE_LOCAL - Correctness - Class defines fields that are used only as locals

Location:
trunk/src/org/openstreetmap/josm/gui/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/ActionFlagsTableCell.java

    r10611 r11534  
    4040    private final transient CellEditorSupport cellEditorSupport = new CellEditorSupport(this);
    4141
    42     private final transient ActionListener al = e -> cellEditorSupport.fireEditingStopped();
    43 
    4442    /**
    4543     * Constructs a new {@code ActionFlagsTableCell}.
     
    5048        setLayout(new GridBagLayout());
    5149
     50        ActionListener al = e -> cellEditorSupport.fireEditingStopped();
    5251        ActionMap am = getActionMap();
    5352        for (final JCheckBox b : checkBoxes) {
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java

    r11457 r11534  
    527527        private final ExecutorService worker;
    528528        private boolean canceled;
    529         private Future<?> currentFuture;
    530529        private AbstractIOTask currentTask;
    531530
     
    565564                    continue;
    566565                }
    567                 currentFuture = worker.submit(currentTask);
     566                Future<?> currentFuture = worker.submit(currentTask);
    568567                try {
    569568                    // wait for the asynchronous task to complete
    570                     //
    571569                    currentFuture.get();
    572570                } catch (CancellationException e) {
     
    606604                }
    607605                currentTask = new SaveLayerTask(layerInfo, monitor);
    608                 currentFuture = worker.submit(currentTask);
     606                Future<?> currentFuture = worker.submit(currentTask);
    609607
    610608                try {
     
    632630                }
    633631                this.currentTask = null;
    634                 this.currentFuture = null;
    635632            }
    636633        }
Note: See TracChangeset for help on using the changeset viewer.