Skip to content

Commit

Permalink
see #15560 - Double.Double() is deprecated
Browse files Browse the repository at this point in the history
git-svn-id: http://josm.openstreetmap.de/svn/trunk@13306 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
don-vip committed Jan 11, 2018
1 parent 3d0009e commit f1c7bd5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ public void testMatchGpxTrack() throws Exception {
// and not taken from GPX track.
assertEquals(null, ib.getSpeed());
assertEquals(null, i0.getSpeed());
assertEquals(new Double(11.675317966018756), i1.getSpeed(), 0.000001);
assertEquals(new Double(24.992418392716967), i2.getSpeed(), 0.000001);
assertEquals(new Double(27.307968754679223), i3.getSpeed(), 0.000001);
assertEquals(Double.valueOf(11.675317966018756), i1.getSpeed(), 0.000001);
assertEquals(Double.valueOf(24.992418392716967), i2.getSpeed(), 0.000001);
assertEquals(Double.valueOf(27.307968754679223), i3.getSpeed(), 0.000001);
assertEquals(null, ib.getElevation());
assertEquals(new Double(471.86), i0.getElevation(), 0.000001);
assertEquals(new Double(489.29), i1.getElevation(), 0.000001);
assertEquals(new Double((490.40 + 489.75) / 2), i2.getElevation(), 0.000001);
assertEquals(new Double(486.368333333), i3.getElevation(), 0.000001);
assertEquals(Double.valueOf(471.86), i0.getElevation(), 0.000001);
assertEquals(Double.valueOf(489.29), i1.getElevation(), 0.000001);
assertEquals(Double.valueOf((490.40 + 489.75) / 2), i2.getElevation(), 0.000001);
assertEquals(Double.valueOf(486.368333333), i3.getElevation(), 0.000001);
assertEquals(null, ib.getGpsTime());
assertEquals(DateUtils.fromString("2016:01:03 11:59:54"), i0.getGpsTime()); // original time is kept
assertEquals(DateUtils.fromString("2016:01:03 12:04:01"), i1.getGpsTime());
Expand Down

0 comments on commit f1c7bd5

Please sign in to comment.