Changeset 30737 in osm for applications/editors/josm/plugins/michigan_left/src/MichiganLeft
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/michigan_left/src/MichiganLeft/MichiganLeft.java
r29778 r30737 42 42 */ 43 43 private static final long serialVersionUID = 1L; 44 private LinkedList<Command> cmds = new LinkedList< Command>();44 private LinkedList<Command> cmds = new LinkedList<>(); 45 45 46 46 public MichiganLeftAction() { … … 56 56 .getSelected(); 57 57 58 ArrayList<OsmPrimitive> selection = new ArrayList< OsmPrimitive>();58 ArrayList<OsmPrimitive> selection = new ArrayList<>(); 59 59 60 60 for (OsmPrimitive prim: mainSelection) selection.add(prim); … … 74 74 if (ways == 4) { 75 75 // Find extremities of ways 76 Hashtable<Node, Integer> ExtremNodes = new Hashtable< Node, Integer>();76 Hashtable<Node, Integer> ExtremNodes = new Hashtable<>(); 77 77 for (OsmPrimitive prim : selection) { 78 78 if (prim instanceof Way) { … … 90 90 91 91 // order the ways 92 ArrayList<Way> orderedWays = new ArrayList< Way>();92 ArrayList<Way> orderedWays = new ArrayList<>(); 93 93 Way currentWay = (Way) selection.iterator().next(); 94 94 orderedWays.add((Way) currentWay); … … 130 130 if (ways == 5) { 131 131 // Find extremities of ways 132 Hashtable<Node, Integer> ExtremNodes = new Hashtable< Node, Integer>();132 Hashtable<Node, Integer> ExtremNodes = new Hashtable<>(); 133 133 for (OsmPrimitive prim : selection) { 134 134 if (prim instanceof Way) { … … 140 140 // System.out.println(tr("{0} extrem nodes.", ExtremNodes.size())); 141 141 142 ArrayList<Node> viaNodes = new ArrayList< Node>();142 ArrayList<Node> viaNodes = new ArrayList<>(); 143 143 // find via nodes (they have 3 occurences in the list) 144 144 for (Enumeration<Node> enumKey = ExtremNodes.keys(); enumKey
Note:
See TracChangeset
for help on using the changeset viewer.