Ignore:
Timestamp:
2011-12-27T16:31:36+01:00 (12 years ago)
Author:
jttt
Message:

Fix some of errors found by FindBugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java

    r3851 r4724  
    4545    {
    4646        return tr("Remote Control has been asked to load data from the API.") +
    47         "<br>" + tr("Request details: {0}", request);
     47                "<br>" + tr("Request details: {0}", request);
    4848    }
    4949
     
    8181                    Area toDownload = null;
    8282                    DataSet ds = Main.main.getCurrentDataSet();
    83                     if (ds != null)
     83                    if (ds != null) {
    8484                        present = ds.getDataSourceArea();
     85                    }
    8586                    if (present != null && !present.isEmpty()) {
    8687                        toDownload = new Area(new Rectangle2D.Double(minlon,minlat,maxlon-minlon,maxlat-minlat));
     
    168169                    }
    169170                    ds.setSelected(newSel);
    170                     if (Main.pref.getBoolean(changeViewportPermissionKey, changeViewportPermissionDefault))
     171                    if (Main.pref.getBoolean(changeViewportPermissionKey, changeViewportPermissionDefault)) {
    171172                        new AutoScaleAction("selection").actionPerformed(null);
     173                    }
    172174                }
    173175            });
     
    189191                        tags = URLDecoder.decode(args.get("addtags"), "UTF-8").split("\\|");
    190192                    } catch (UnsupportedEncodingException e) {
    191                         new RuntimeException();
     193                        throw new RuntimeException();
    192194                    }
    193195                    String[][] keyValue = new String[tags.length][2];
Note: See TracChangeset for help on using the changeset viewer.