Changeset 8338 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2015-05-07T01:27:41+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r8308 r8338 950 950 951 951 private static void pruneSuccsAndReverse(List<Integer> is) { 952 HashSet<Integer> is2 = new HashSet<>();952 Set<Integer> is2 = new HashSet<>(); 953 953 for (int i : is) { 954 954 if (!is2.contains(i - 1) && !is2.contains(i + 1)) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r8308 r8338 101 101 * Collection of nodes that is moved 102 102 */ 103 private ArrayList<Node> movingNodeList;103 private List<Node> movingNodeList; 104 104 105 105 /** … … 626 626 boolean segmentAngleZero = prevNode != null && Math.abs(Geometry.getCornerAngle(prevNode.getEastNorth(), initialN1en, newN1en)) < 1e-5; 627 627 boolean hasOtherWays = hasNodeOtherWays(selectedSegment.getFirstNode(), selectedSegment.way); 628 ArrayList<Node> changedNodes = new ArrayList<>();628 List<Node> changedNodes = new ArrayList<>(); 629 629 if (nodeOverlapsSegment && !alwaysCreateNodes && !hasOtherWays) { 630 630 //move existing node -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java
r8285 r8338 8 8 import java.util.HashSet; 9 9 import java.util.List; 10 import java.util.Map; 10 11 import java.util.Set; 11 12 … … 40 41 // Make a deep copy of the ways, keeping the copied ways connected 41 42 // TODO: This assumes the first/last nodes of the ways are the only possible shared nodes. 42 HashMap<Node, Node> splitNodeMap = new HashMap<>(sourceWays.size());43 Map<Node, Node> splitNodeMap = new HashMap<>(sourceWays.size()); 43 44 for (Way w : sourceWays) { 44 45 if (!splitNodeMap.containsKey(w.firstNode())) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r8318 r8338 248 248 determineMapMode(!c.isEmpty()); 249 249 250 HashSet<OsmPrimitive> newHighlights = new HashSet<>();250 Set<OsmPrimitive> newHighlights = new HashSet<>(); 251 251 252 252 virtualManager.clear();
Note:
See TracChangeset
for help on using the changeset viewer.