Ignore:
Timestamp:
2016-03-17T01:50:12+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - Local variable and method parameter names should comply with a naming convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackAction.java

    r9817 r10001  
    9393         * and then stop because it has more than 50k nodes.
    9494         */
    95         final double buffer_dist = panel.getDistance();
    96         final double max_area = panel.getArea() / 10000.0 / scale;
    97         final double buffer_y = buffer_dist / 100000.0;
    98         final double buffer_x = buffer_y / scale;
     95        final double bufferDist = panel.getDistance();
     96        final double maxArea = panel.getArea() / 10000.0 / scale;
     97        final double bufferY = bufferDist / 100000.0;
     98        final double bufferX = bufferY / scale;
    9999        final int totalTicks = latcnt;
    100100        // guess if a progress bar might be useful.
    101         final boolean displayProgress = totalTicks > 2000 && buffer_y < 0.01;
     101        final boolean displayProgress = totalTicks > 2000 && bufferY < 0.01;
    102102
    103103        class CalculateDownloadArea extends PleaseWaitRunnable {
     
    126126                    return;
    127127                }
    128                 confirmAndDownloadAreas(a, max_area, panel.isDownloadOsmData(), panel.isDownloadGpxData(),
     128                confirmAndDownloadAreas(a, maxArea, panel.isDownloadOsmData(), panel.isDownloadGpxData(),
    129129                        tr("Download from OSM along this track"), progressMonitor);
    130130            }
     
    147147                tick();
    148148                LatLon c = p.getCoor();
    149                 if (previous == null || c.greatCircleDistance(previous) > buffer_dist) {
     149                if (previous == null || c.greatCircleDistance(previous) > bufferDist) {
    150150                    // we add a buffer around the point.
    151                     r.setRect(c.lon() - buffer_x, c.lat() - buffer_y, 2 * buffer_x, 2 * buffer_y);
     151                    r.setRect(c.lon() - bufferX, c.lat() - bufferY, 2 * bufferX, 2 * bufferY);
    152152                    a.add(new Area(r));
    153153                    return c;
Note: See TracChangeset for help on using the changeset viewer.