Changeset 9810 in josm


Ignore:
Timestamp:
2016-02-16T23:45:21+01:00 (8 years ago)
Author:
Don-vip
Message:

checkstyle

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r9807 r9810  
    395395            // returned map from HttpUrlConnection is case sensitive, use case insensitive TreeMap to conform to RFC 2616
    396396            Map<String, List<String>> ret = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
    397             for(Entry<String, List<String>> e: connection.getHeaderFields().entrySet()) {
     397            for (Entry<String, List<String>> e: connection.getHeaderFields().entrySet()) {
    398398                if (e.getKey() != null) {
    399399                    ret.put(e.getKey(), e.getValue());
  • trunk/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java

    r9806 r9810  
    1313    private static final double EPSILON = 1e-6;
    1414
     15    /**
     16     * Lat/Lon sample values for unit tests
     17     */
    1518    public static final double[] SAMPLE_VALUES = new double[]{
    1619            -180.0, -179.9, -179.6, -179.5, -179.4, -179.1, -179.0, -100.0, -99.9, -10.0, -9.9, -1.0, -0.1,
     
    135138        LatLon e = new LatLon(47.000000, 19.000001);
    136139        LatLon n = new LatLon(47.000001, 19.000000);
    137         assertEquals(  0, Math.toDegrees(c.bearing(n)), EPSILON);
    138         assertEquals( 90, Math.toDegrees(c.bearing(e)), EPSILON);
     140        assertEquals(0, Math.toDegrees(c.bearing(n)), EPSILON);
     141        assertEquals(90, Math.toDegrees(c.bearing(e)), EPSILON);
    139142        assertEquals(180, Math.toDegrees(n.bearing(c)), EPSILON);
    140143        assertEquals(270, Math.toDegrees(e.bearing(c)), EPSILON);
Note: See TracChangeset for help on using the changeset viewer.