Ignore:
Timestamp:
2015-05-07T01:27:41+02:00 (9 years ago)
Author:
Don-vip
Message:

fix squid:S1319 - Declarations should use Java collection interfaces rather than specific implementation classes

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  
    950950
    951951    private static void pruneSuccsAndReverse(List<Integer> is) {
    952         HashSet<Integer> is2 = new HashSet<>();
     952        Set<Integer> is2 = new HashSet<>();
    953953        for (int i : is) {
    954954            if (!is2.contains(i - 1) && !is2.contains(i + 1)) {
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r8308 r8338  
    101101     * Collection of nodes that is moved
    102102     */
    103     private ArrayList<Node> movingNodeList;
     103    private List<Node> movingNodeList;
    104104
    105105    /**
     
    626626        boolean segmentAngleZero = prevNode != null && Math.abs(Geometry.getCornerAngle(prevNode.getEastNorth(), initialN1en, newN1en)) < 1e-5;
    627627        boolean hasOtherWays = hasNodeOtherWays(selectedSegment.getFirstNode(), selectedSegment.way);
    628         ArrayList<Node> changedNodes = new ArrayList<>();
     628        List<Node> changedNodes = new ArrayList<>();
    629629        if (nodeOverlapsSegment && !alwaysCreateNodes && !hasOtherWays) {
    630630            //move existing node
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java

    r8285 r8338  
    88import java.util.HashSet;
    99import java.util.List;
     10import java.util.Map;
    1011import java.util.Set;
    1112
     
    4041        // Make a deep copy of the ways, keeping the copied ways connected
    4142        // 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());
    4344        for (Way w : sourceWays) {
    4445            if (!splitNodeMap.containsKey(w.firstNode())) {
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r8318 r8338  
    248248        determineMapMode(!c.isEmpty());
    249249
    250         HashSet<OsmPrimitive> newHighlights = new HashSet<>();
     250        Set<OsmPrimitive> newHighlights = new HashSet<>();
    251251
    252252        virtualManager.clear();
Note: See TracChangeset for help on using the changeset viewer.