Changeset 30737 in osm for applications/editors/josm/plugins/tracer
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java
r29854 r30737 37 37 */ 38 38 public static Command connect(Way way) { 39 Map<Way, Way> modifiedWays = new HashMap< Way, Way>();40 LinkedList<Command> cmds = new LinkedList< Command>();39 Map<Way, Way> modifiedWays = new HashMap<>(); 40 LinkedList<Command> cmds = new LinkedList<>(); 41 41 Way newWay = new Way(way); 42 42 for (int i = 0; i < way.getNodesCount() - 1; i++) { … … 92 92 */ 93 93 private static List<Command> mergeNodes(Node n1, Node n2, Way way){ 94 List<Command> cmds = new LinkedList< Command>();94 List<Command> cmds = new LinkedList<>(); 95 95 cmds.add(new MoveCommand(n2, 96 96 (n1.getEastNorth().getX() - n2.getEastNorth().getX())/2, -
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/TracerAction.java
r29595 r30737 102 102 103 103 private void traceSync(LatLon pos, ProgressMonitor progressMonitor) { 104 Collection<Command> commands = new LinkedList< Command>();104 Collection<Command> commands = new LinkedList<>(); 105 105 106 106 progressMonitor.beginTask(null, 3); -
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/TracerServer.java
r23191 r30737 50 50 try { 51 51 String content = callServer("trace/simple/" + pos.lat() + ";" + pos.lon()); 52 ArrayList<LatLon> nodelist = new ArrayList< LatLon>();52 ArrayList<LatLon> nodelist = new ArrayList<>(); 53 53 String[] lines = content.split("\\|"); 54 54 for (String line : lines) { … … 60 60 return nodelist; 61 61 } catch (Exception e) { 62 return new ArrayList< LatLon>();62 return new ArrayList<>(); 63 63 } 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.