Changeset 30737 in osm for applications/editors/josm/plugins/buildings_tools/src
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/buildings_tools/src/buildings_tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/AngleSnap.java
r30045 r30737 13 13 public class AngleSnap { 14 14 private static final double PI_2 = Math.PI / 2; 15 final TreeSet<Double> snapSet = new TreeSet< Double>();15 final TreeSet<Double> snapSet = new TreeSet<>(); 16 16 17 17 public final void clear() { -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java
r30045 r30737 232 232 bbox.add(eastNorth2latlon(en[2])); 233 233 bbox.add(eastNorth2latlon(en[3])); 234 List<Node> nodes = new LinkedList< Node>();234 List<Node> nodes = new LinkedList<>(); 235 235 nodesloop: 236 236 for (Node n : Main.main.getCurrentDataSet().searchNodes(bbox)) { … … 295 295 } 296 296 w.addNode(nodes[0]); 297 Collection<Command> cmds = new LinkedList< Command>();297 Collection<Command> cmds = new LinkedList<>(); 298 298 for (int i = 0; i < 4; i++) { 299 299 if (created[i]) -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/DrawBuildingAction.java
r30045 r30737 408 408 // update snap only if selection isn't too big 409 409 if (newSelection.size() <= 10) { 410 LinkedList<Node> nodes = new LinkedList< Node>();411 LinkedList<Way> ways = new LinkedList< Way>();410 LinkedList<Node> nodes = new LinkedList<>(); 411 LinkedList<Way> ways = new LinkedList<>(); 412 412 413 413 for (OsmPrimitive p : newSelection) { -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/ToolSettings.java
r30045 r30737 24 24 private static double lenstep = 0; 25 25 private static boolean useAddr; 26 private static final Map<String, String> TAGS = new HashMap< String, String>();26 private static final Map<String, String> TAGS = new HashMap<>(); 27 27 private static boolean autoSelect; 28 28 … … 54 54 55 55 public static void saveTags() { 56 ArrayList<String> values = new ArrayList< String>(TAGS.size() * 2);56 ArrayList<String> values = new ArrayList<>(TAGS.size() * 2); 57 57 for (Entry<String, String> entry : TAGS.entrySet()) { 58 58 values.add(entry.getKey());
Note:
See TracChangeset
for help on using the changeset viewer.