DetectTaskingManagerUtils: Update deprecated method

Signed-off-by: Taylor Smock <tsmock@fb.com>
pull/1/head
Taylor Smock 2021-05-18 07:23:46 -06:00
rodzic 88a87bb1c1
commit 5beec53fb1
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -3,6 +3,7 @@ package org.openstreetmap.josm.plugins.mapwithai.backend;
import static org.openstreetmap.josm.tools.I18n.tr;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
@ -91,7 +92,7 @@ final class DetectTaskingManagerUtils {
route.routePoints.add(new WayPoint(bounds.getMax()));
route.routePoints.add(new WayPoint(new LatLon(bounds.getMinLat(), bounds.getMaxLon())));
route.routePoints.add(route.routePoints.iterator().next());
route.routePoints.forEach(waypoint -> waypoint.setTime(0));
route.routePoints.forEach(waypoint -> waypoint.setInstant(Instant.EPOCH));
data.addRoute(route);
return data;
}