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

File:
1 edited

Legend:

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

    r8182 r8338  
    1111import java.util.Collection;
    1212import java.util.Collections;
    13 import java.util.HashSet;
    1413import java.util.LinkedHashMap;
    1514import java.util.LinkedHashSet;
     
    184183        List<Command> resolution = CombinePrimitiveResolverDialog.launchIfNecessary(wayTags, ways, Collections.singleton(targetWay));
    185184
    186         LinkedList<Command> cmds = new LinkedList<>();
    187         LinkedList<Way> deletedWays = new LinkedList<>(ways);
     185        List<Command> cmds = new LinkedList<>();
     186        List<Way> deletedWays = new LinkedList<>(ways);
    188187        deletedWays.remove(targetWay);
    189188
     
    561560
    562561        protected Set<Node> getNodes(Stack<NodePair> pairs) {
    563             HashSet<Node> nodes = new LinkedHashSet<>(2*pairs.size());
     562            Set<Node> nodes = new LinkedHashSet<>(2*pairs.size());
    564563            for (NodePair pair: pairs) {
    565564                nodes.add(pair.getA());
     
    594593
    595594        protected List<Node> buildPathFromNodePairs(Stack<NodePair> path) {
    596             LinkedList<Node> ret = new LinkedList<>();
     595            List<Node> ret = new LinkedList<>();
    597596            for (NodePair pair: path) {
    598597                ret.add(pair.getA());
Note: See TracChangeset for help on using the changeset viewer.