Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

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

    r8444 r8510  
    8282        } else if (url.matches(PATTERN_TRACKPOINTS_BBOX)) {
    8383            String[] table = url.split("\\?|=|&");
    84             for (int i = 0; i<table.length; i++) {
    85                 if ("bbox".equals(table[i]) && i<table.length-1)
     84            for (int i = 0; i < table.length; i++) {
     85                if ("bbox".equals(table[i]) && i < table.length-1)
    8686                    return download(newLayer, new Bounds(table[i+1], ",", ParseMethod.LEFT_BOTTOM_RIGHT_TOP), progressMonitor);
    8787            }
     
    115115                ProgressMonitor subMonitor = progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false);
    116116                rawData = reader.parseRawGps(subMonitor);
    117             } catch(Exception e) {
     117            } catch (Exception e) {
    118118                if (isCanceled())
    119119                    return;
     
    160160            boolean merge = Main.pref.getBoolean("download.gps.mergeWithLocal", false);
    161161            Layer active = Main.map.mapView.getActiveLayer();
    162             if (active instanceof GpxLayer && (merge || ((GpxLayer)active).data.fromServer))
     162            if (active instanceof GpxLayer && (merge || ((GpxLayer) active).data.fromServer))
    163163                return (GpxLayer) active;
    164164            for (GpxLayer l : Main.map.mapView.getLayersOfType(GpxLayer.class)) {
Note: See TracChangeset for help on using the changeset viewer.