Changeset 6232 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2013-09-11T00:58:39+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar - Avoid unused local variables

Location:
trunk/src/org/openstreetmap/josm
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java

    r6142 r6232  
    136136        DownloadFileTask downloadFileTask = new DownloadFileTask(Main.parent, address, fOut, mkdir, unzip);
    137137
    138         Future f = Main.worker.submit(downloadFileTask);
     138        Main.worker.submit(downloadFileTask);
    139139        log("Info: downloading file from %s to %s in background ", parentDir, fOut.getAbsolutePath());
    140140        if (unzip) log("and unpacking it"); else log("");
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r6164 r6232  
    10511051
    10521052    public boolean putListOfStructs(String key, Collection<Map<String, String>> value) {
    1053         boolean changed = false;
    10541053
    10551054        List<Map<String, String>> oldValue;
  • trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java

    r6203 r6232  
    287287                    o.getBBox().getIndex(level);
    288288                    o.getBBox().getIndex(level - 1);
    289                     int nr = 0;
    290289                    abort("\nobject " + o + " does not belong in node at level: " + level + " bbox: " + this.bbox());
    291290                }
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r6228 r6232  
    612612        LinkedList<WayPoint> visibleSegments = new LinkedList<WayPoint>();
    613613        WayPoint last = null;
    614         int i = 0;
    615614        ensureTrackVisibilityLength();
    616615        for (Collection<WayPoint> segment : data.getLinesIterable(trackVisibility)) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/NodeElemStyle.java

    r6174 r6232  
    8787    static {
    8888        MultiCascade mc = new MultiCascade();
    89         Cascade c = mc.getOrCreateCascade("default");
     89        mc.getOrCreateCascade("default");
    9090        SIMPLE_NODE_ELEMSTYLE = create(new Environment(null, mc, "default", null), 4.1f, true);
    9191        if (SIMPLE_NODE_ELEMSTYLE == null) throw new AssertionError();
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r6085 r6232  
    189189        if (s.length>1) {
    190190            float[] dash= new float[s.length-1];
    191             boolean error = false;
    192191            float sumAbs = 0;
    193192            try {
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r6085 r6232  
    184184        if(s != null) {
    185185            try {
    186                 URL url = new URL(s);
     186                new URL(s);
    187187            } catch (MalformedURLException e) {
    188188                System.out.println(tr("Invalid URL ''{0}'' in plugin {1}", s, name));
  • trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java

    r6087 r6232  
    128128    public static String explainPreconditionFailed(OsmApiException e) {
    129129        e.printStackTrace();
    130         String msg = e.getErrorHeader();
    131130        Pair<OsmPrimitive, Collection<OsmPrimitive>> conflict = parsePreconditionFailed(e.getErrorHeader());
    132131        if (conflict != null) {
Note: See TracChangeset for help on using the changeset viewer.