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/gui/dialogs/properties/PropertiesDialog.java

    r8308 r8338  
    608608        final Map<String, String> tags = new HashMap<>();
    609609        valueCount.clear();
    610         EnumSet<TaggingPresetType> types = EnumSet.noneOf(TaggingPresetType.class);
     610        Set<TaggingPresetType> types = EnumSet.noneOf(TaggingPresetType.class);
    611611        for (OsmPrimitive osm : newSel) {
    612612            types.add(TaggingPresetType.forPrimitive(osm));
     
    619619                        v.put(value, v.containsKey(value) ? v.get(value) + 1 : 1);
    620620                    } else {
    621                         TreeMap<String, Integer> v = new TreeMap<>();
     621                        Map<String, Integer> v = new TreeMap<>();
    622622                        v.put(value, 1);
    623623                        valueCount.put(key, v);
     
    753753        int row = tagTable.getSelectedRow();
    754754        if (row == -1) return null;
    755         TreeMap<String, Integer> map = (TreeMap<String, Integer>) tagData.getValueAt(row, 1);
     755        Map<String, Integer> map = (TreeMap<String, Integer>) tagData.getValueAt(row, 1);
    756756        return new Tag(
    757757                tagData.getValueAt(row, 0).toString(),
     
    905905        protected void deleteTags(int[] rows){
    906906            // convert list of rows to HashMap (and find gap for nextKey)
    907             HashMap<String, String> tags = new HashMap<>(rows.length);
     907            Map<String, String> tags = new HashMap<>(rows.length);
    908908            int nextKeyIndex = rows[0];
    909909            for (int row : rows) {
Note: See TracChangeset for help on using the changeset viewer.