Ignore:
Timestamp:
2017-06-09T19:57:55+02:00 (7 years ago)
Author:
michael2402
Message:

CyclicUploadDependencyException: Copy the collection passed to the constructor. Fix squid:S1149

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java

    r12279 r12365  
    66import java.awt.BorderLayout;
    77import java.awt.Dimension;
     8import java.util.ArrayList;
    89import java.util.Iterator;
    910import java.util.List;
     
    6667     */
    6768    protected void warnCyclicUploadDependency(CyclicUploadDependencyException e) {
    68         List<Relation> dep = e.getCyclicUploadDependency();
     69        List<Relation> dep = new ArrayList<>(e.getCyclicUploadDependency());
    6970        Relation last = dep.get(dep.size() -1);
    7071        Iterator<Relation> it = dep.iterator();
Note: See TracChangeset for help on using the changeset viewer.