Changeset 10060 in josm for trunk/src/org


Ignore:
Timestamp:
2016-03-27T19:26:23+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11924 - remove deprecated code, reduce double precision in unit tests to avoid tiny differences with JDK9

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r10033 r10060  
    458458
    459459    /**
    460      * Returns the value rounded to OSM precisions, i.e. to {@link LatLon#MAX_SERVER_PRECISION}.
     460     * Returns the value rounded to OSM precisions, i.e. to {@link #MAX_SERVER_PRECISION}.
    461461     * @param value lat/lon value
    462462     *
     
    468468
    469469    /**
    470      * Returns the value rounded to OSM precision. This function is now the same as
    471      * {@link #roundToOsmPrecision(double)}, since the rounding error has been fixed.
    472      * @param value lat/lon value
    473      *
    474      * @return rounded value
    475      * @deprecated Use {@link #roundToOsmPrecision(double)} instead
    476      */
    477     @Deprecated
    478     public static double roundToOsmPrecisionStrict(double value) {
    479         return roundToOsmPrecision(value);
    480     }
    481 
    482     /**
    483      * Replies a clone of this lat LatLon, rounded to OSM precisions, i.e. to
    484      * MAX_SERVER_PRECISION
     470     * Replies a clone of this lat LatLon, rounded to OSM precisions, i.e. to {@link #MAX_SERVER_PRECISION}
    485471     *
    486472     * @return a clone of this lat LatLon
     
    491477                roundToOsmPrecision(lon())
    492478                );
    493     }
    494 
    495     /**
    496      * Replies a clone of this lat LatLon, rounded to OSM precisions, i.e. to
    497      * MAX_SERVER_PRECISION
    498      *
    499      * @return a clone of this lat LatLon
    500      * @deprecated Use {@link #getRoundedToOsmPrecision()} instead
    501      */
    502     @Deprecated
    503     public LatLon getRoundedToOsmPrecisionStrict() {
    504         return getRoundedToOsmPrecision();
    505479    }
    506480
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java

    r9078 r10060  
    173173        // Critical: only allow TLS ("serverAuth" = 1.3.6.1.5.5.7.3.1)
    174174        ext.set(ExtendedKeyUsageExtension.NAME, new ExtendedKeyUsageExtension(Boolean.TRUE,
    175                 new Vector<ObjectIdentifier>(Arrays.asList(new ObjectIdentifier("1.3.6.1.5.5.7.3.1")))));
     175                new Vector<>(Arrays.asList(new ObjectIdentifier("1.3.6.1.5.5.7.3.1")))));
    176176
    177177        if (san != null) {
Note: See TracChangeset for help on using the changeset viewer.