Changeset 13306 in josm


Ignore:
Timestamp:
2018-01-11T14:22:20+01:00 (10 days ago)
Author:
Don-vip
Message:

see #15560 - Double.Double() is deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java

    r13256 r13306  
    8585        assertEquals(null, ib.getSpeed());
    8686        assertEquals(null, i0.getSpeed());
    87         assertEquals(new Double(11.675317966018756), i1.getSpeed(), 0.000001);
    88         assertEquals(new Double(24.992418392716967), i2.getSpeed(), 0.000001);
    89         assertEquals(new Double(27.307968754679223), i3.getSpeed(), 0.000001);
     87        assertEquals(Double.valueOf(11.675317966018756), i1.getSpeed(), 0.000001);
     88        assertEquals(Double.valueOf(24.992418392716967), i2.getSpeed(), 0.000001);
     89        assertEquals(Double.valueOf(27.307968754679223), i3.getSpeed(), 0.000001);
    9090        assertEquals(null, ib.getElevation());
    91         assertEquals(new Double(471.86), i0.getElevation(), 0.000001);
    92         assertEquals(new Double(489.29), i1.getElevation(), 0.000001);
    93         assertEquals(new Double((490.40 + 489.75) / 2), i2.getElevation(), 0.000001);
    94         assertEquals(new Double(486.368333333), i3.getElevation(), 0.000001);
     91        assertEquals(Double.valueOf(471.86), i0.getElevation(), 0.000001);
     92        assertEquals(Double.valueOf(489.29), i1.getElevation(), 0.000001);
     93        assertEquals(Double.valueOf((490.40 + 489.75) / 2), i2.getElevation(), 0.000001);
     94        assertEquals(Double.valueOf(486.368333333), i3.getElevation(), 0.000001);
    9595        assertEquals(null, ib.getGpsTime());
    9696        assertEquals(DateUtils.fromString("2016:01:03 11:59:54"), i0.getGpsTime()); // original time is kept
Note: See TracChangeset for help on using the changeset viewer.