Ignore:
Timestamp:
2013-09-27T13:38:15+02:00 (6 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Replace singular fields by local variables

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JumpToAction.java

    r6246 r6267  
    4040    private JosmTextField zm = new JosmTextField();
    4141
    42     private double zoomFactor = 0;
    4342    public void showJumpToDialog() {
    4443        MapView mv = Main.map.mapView;
     
    5049
    5150        double dist = mv.getDist100Pixel();
    52         zoomFactor = 1/dist;
     51        double zoomFactor = 1/dist;
    5352
    5453        zm.setText(java.lang.Long.toString(Math.round(dist*100)/100));
  • trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java

    r6245 r6267  
    5252    private MultiMap<Layer, Layer> dependencies;
    5353
    54     private boolean zipRequired;
    55 
    5654    /**
    5755     * Constructs a new {@code SessionSaveAsAction}.
     
    7270        if (dlg.getValue() != 1) return;
    7371
    74         zipRequired = false;
     72        boolean zipRequired = false;
    7573        for (Layer l : layers) {
    7674            SessionLayerExporter ex = exporters.get(l);
  • trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java

    r6084 r6267  
    3232 */
    3333public class RelationUploadOrderHook implements UploadHook {
    34 
    35     /** the data to be analyzed */
    36     private APIDataSet data;
    3734
    3835    /**
     
    9996    @Override
    10097    public boolean checkUpload(APIDataSet apiDataSet) {
    101         this.data = apiDataSet;
    10298        try {
    103             data.adjustRelationUploadOrder();
     99            apiDataSet.adjustRelationUploadOrder();
    104100            return true;
    105101        } catch(CyclicUploadDependencyException e) {
Note: See TracChangeset for help on using the changeset viewer.