- Timestamp:
- 2016-03-15T09:15:57+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r9948 r9999 305 305 final Set<Node> allNodes = new HashSet<>(); 306 306 for (WayData w : wayDataList) { 307 for (Node n : w.wayNodes) { 308 allNodes.add(n); 309 } 307 allNodes.addAll(w.wayNodes); 310 308 } 311 309 -
trunk/src/org/openstreetmap/josm/actions/SelectNonBranchingWaySequences.java
r9062 r9999 147 147 148 148 boolean selectionChanged = false; 149 Collection<OsmPrimitive> selection = new LinkedList<>(); 150 for (OsmPrimitive primitive : currentSelection) { 151 selection.add(primitive); 152 } 149 Collection<OsmPrimitive> selection = new LinkedList<>(currentSelection); 153 150 154 151 do { -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r9968 r9999 586 586 newWays.remove(wayToKeep); 587 587 588 newSelection.addAll(newWays); 588 589 for (Way wayToAdd : newWays) { 589 590 commandList.add(new AddCommand(layer, wayToAdd)); 590 newSelection.add(wayToAdd);591 591 } 592 592 -
trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingWays.java
r8510 r9999 148 148 seenWays.put(currentWays, duplicated); 149 149 } else { /* way seen, mark highlight layer only */ 150 for (WaySegment ws : duplicated) { 151 highlight.add(ws); 152 } 150 highlight.addAll(duplicated); 153 151 } 154 152 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ParentRelationLoadingTask.java
r9078 r9999 12 12 13 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.data.DataSource;15 14 import org.openstreetmap.josm.data.osm.DataSet; 16 15 import org.openstreetmap.josm.data.osm.DataSetMerger; … … 165 164 166 165 // copy the merged layer's data source info 167 for (DataSource src : referrers.dataSources) { 168 getLayer().data.dataSources.add(src); 169 } 166 getLayer().data.dataSources.addAll(referrers.dataSources); 170 167 // FIXME: this is necessary because there are dialogs listening 171 // for DataChangeEvents which manipulate Swing components on this 172 // thread. 168 // for DataChangeEvents which manipulate Swing components on this thread. 173 169 // 174 170 SwingUtilities.invokeLater( -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r9751 r9999 56 56 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 57 57 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 58 import org.openstreetmap.josm.gui.layer.AbstractModifiableLayer; 58 59 import org.openstreetmap.josm.gui.layer.GpxLayer; 59 60 import org.openstreetmap.josm.gui.layer.JumpToMarkerActions.JumpToMarkerLayer; 60 61 import org.openstreetmap.josm.gui.layer.JumpToMarkerActions.JumpToNextMarker; 61 62 import org.openstreetmap.josm.gui.layer.JumpToMarkerActions.JumpToPreviousMarker; 62 import org.openstreetmap.josm.gui.layer.AbstractModifiableLayer;63 63 import org.openstreetmap.josm.gui.layer.Layer; 64 64 import org.openstreetmap.josm.gui.util.GuiHelper; … … 978 978 */ 979 979 public List<ImageEntry> getImages() { 980 if (data == null) { 981 return Collections.emptyList(); 982 } 983 List<ImageEntry> copy = new ArrayList<>(data.size()); 984 for (ImageEntry ie : data) { 985 copy.add(ie); 986 } 987 return copy; 980 return data == null ? Collections.<ImageEntry>emptyList() : new ArrayList<>(data); 988 981 } 989 982
Note:
See TracChangeset
for help on using the changeset viewer.