Ignore:
Timestamp:
2015-05-07T01:27:41+02:00 (5 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/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java

    r7005 r8338  
    66import static org.openstreetmap.josm.tools.I18n.trn;
    77
    8 import java.util.AbstractMap;
    98import java.util.ArrayList;
    109import java.util.Arrays;
     
    4039     * those objects that do not have the key yet.
    4140     */
    42     private final AbstractMap<String, String> tags;
     41    private final Map<String, String> tags;
    4342
    4443    /**
     
    4847     * @param tags the tags to set
    4948     */
    50     public ChangePropertyCommand(Collection<? extends OsmPrimitive> objects, AbstractMap<String, String> tags) {
     49    public ChangePropertyCommand(Collection<? extends OsmPrimitive> objects, Map<String, String> tags) {
    5150        this.objects = new LinkedList<>();
    5251        this.tags = tags;
  • trunk/src/org/openstreetmap/josm/command/PurgeCommand.java

    r7005 r8338  
    201201        List<Relation> outR = new ArrayList<>(inR.size());
    202202
    203         HashMap<Relation, Integer> numChilds = new HashMap<>();
     203        Map<Relation, Integer> numChilds = new HashMap<>();
    204204
    205205        // calculate initial number of childs
Note: See TracChangeset for help on using the changeset viewer.