Changeset 30737 in osm for applications/editors/josm/plugins/Create_grid_of_ways
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/Create_grid_of_ways/src/CreateGridOfWaysPlugin/CreateGridOfWaysAction.java
r29771 r30737 47 47 public void actionPerformed(ActionEvent e) { 48 48 Collection<OsmPrimitive> sel = Main.main.getCurrentDataSet().getSelected(); 49 Collection<Node> nodesWay1 = new LinkedList< Node>();50 Collection<Node> nodesWay2 = new LinkedList< Node>();49 Collection<Node> nodesWay1 = new LinkedList<>(); 50 Collection<Node> nodesWay2 = new LinkedList<>(); 51 51 if ((sel.size() != 2) || !(sel.toArray()[0] instanceof Way) || !(sel.toArray()[1] instanceof Way)) { 52 52 JOptionPane.showMessageDialog(Main.parent, tr("Select two ways with a node in common")); … … 71 71 for (int c=0;c<w1.length;c++) 72 72 w1[c]=new Way(); 73 Collection<Command> cmds = new LinkedList< Command>();73 Collection<Command> cmds = new LinkedList<>(); 74 74 int c1=0,c2; 75 75 double latDif,lonDif;
Note:
See TracChangeset
for help on using the changeset viewer.