Ignore:
Timestamp:
2014-02-24T17:49:12+01:00 (12 years ago)
Author:
Don-vip
Message:

javadoc/code style/minor refactorization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java

    r6334 r6881  
    1212public class ProjectionTest {
    1313
    14     private static final boolean debug = false;
    1514    private static Random rand = new Random(System.currentTimeMillis());
    1615
     
    6463            double maxErrLat = 0, maxErrLon = 0;
    6564            Bounds b = p.getWorldBoundsLatLon();
    66    
     65
    6766            text += String.format("*** %s %s%n", p.toString(), p.toCode());
    6867            for (int num=0; num < 1000; ++num) {
    69    
     68
    7069                double lat = rand.nextDouble() * (b.getMax().lat() - b.getMin().lat()) + b.getMin().lat();
    7170                double lon = rand.nextDouble() * (b.getMax().lon() - b.getMin().lon()) + b.getMin().lon();
    72    
     71
    7372                LatLon ll = new LatLon(lat, lon);
    74    
     73
    7574                for (int i=0; i<10; ++i) {
    7675                    EastNorth en = p.latlon2eastNorth(ll);
     
    8079                maxErrLon = Math.max(maxErrLon, Math.abs(lon - ll.lon()));
    8180            }
    82    
     81
    8382            String mark = "";
    8483            if (maxErrLat + maxErrLon > 1e-5) {
Note: See TracChangeset for help on using the changeset viewer.