Ignore:
Timestamp:
2014-01-31T02:44:56+01:00 (10 years ago)
Author:
Don-vip
Message:

Sonar - fix various issues

File:
1 edited

Legend:

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

    r6674 r6792  
    1919import org.openstreetmap.josm.data.osm.BBox;
    2020import org.openstreetmap.josm.data.osm.DataSet;
    21 import org.openstreetmap.josm.data.osm.Node;
    2221import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2322import org.openstreetmap.josm.data.osm.Relation;
    2423import org.openstreetmap.josm.data.osm.SimplePrimitiveId;
    25 import org.openstreetmap.josm.data.osm.Way;
    2624import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    2725import org.openstreetmap.josm.gui.util.GuiHelper;
     
    3533 */
    3634public class LoadAndZoomHandler extends RequestHandler {
    37    
     35
    3836    /**
    3937     * The remote control command name used to load data and zoom.
     
    5351
    5452    // Optional argument 'select'
    55     private final HashSet<SimplePrimitiveId> toSelect = new HashSet<SimplePrimitiveId>();
     53    private final Set<SimplePrimitiveId> toSelect = new HashSet<SimplePrimitiveId>();
    5654
    5755    @Override
     
    8482        return getUsageExamples(myCommand);
    8583    }
    86    
     84
    8785    @Override
    8886    public String[] getUsageExamples(String cmd) {
     
    163161                @Override
    164162                public void run() {
    165                     HashSet<OsmPrimitive> newSel = new HashSet<OsmPrimitive>();
     163                    Set<OsmPrimitive> newSel = new HashSet<OsmPrimitive>();
    166164                    DataSet ds = Main.main.getCurrentDataSet();
    167165                    if(ds == null) // e.g. download failed
     
    249247            throw new RequestHandlerBadRequestException("NumberFormatException ("+e.getMessage()+")");
    250248        }
    251        
     249
    252250        // Current API 0.6 check: "The latitudes must be between -90 and 90"
    253251        if (!LatLon.isValidLat(minlat) || !LatLon.isValidLat(maxlat)) {
Note: See TracChangeset for help on using the changeset viewer.