- Timestamp:
- 2017-06-09T19:57:55+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/CyclicUploadDependencyException.java
r12364 r12365 5 5 6 6 import java.util.ArrayList; 7 import java.util.Collections; 7 8 import java.util.List; 8 9 import java.util.Stack; … … 14 15 */ 15 16 public class CyclicUploadDependencyException extends Exception { 16 private final Stack<Relation> cycle;17 private final List<Relation> cycle; 17 18 18 19 /** … … 21 22 */ 22 23 public CyclicUploadDependencyException(Stack<Relation> cycle) { 23 this.cycle = cycle;24 this.cycle = new ArrayList<>(cycle); 24 25 } 25 26 … … 56 57 */ 57 58 public List<Relation> getCyclicUploadDependency() { 58 return new ArrayList<>(cycle);59 return Collections.unmodifiableList(cycle); 59 60 } 60 61 } -
trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java
r12279 r12365 6 6 import java.awt.BorderLayout; 7 7 import java.awt.Dimension; 8 import java.util.ArrayList; 8 9 import java.util.Iterator; 9 10 import java.util.List; … … 66 67 */ 67 68 protected void warnCyclicUploadDependency(CyclicUploadDependencyException e) { 68 List<Relation> dep = e.getCyclicUploadDependency();69 List<Relation> dep = new ArrayList<>(e.getCyclicUploadDependency()); 69 70 Relation last = dep.get(dep.size() -1); 70 71 Iterator<Relation> it = dep.iterator();
Note:
See TracChangeset
for help on using the changeset viewer.