Changeset 11517 in josm for trunk


Ignore:
Timestamp:
2017-01-31T23:00:21+01:00 (2 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:OC_OVERZEALOUS_CASTING - Correctness - Method manually casts the right hand side of an assignment more specifically than needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java

    r11381 r11517  
    2424import java.util.Map.Entry;
    2525import java.util.Set;
    26 import java.util.SortedMap;
    2726import java.util.TreeMap;
    2827import java.util.regex.Matcher;
     
    10261025        Map<String, String> stringMap = (Map<String, String>) engine.get("stringMap");
    10271026        @SuppressWarnings("unchecked")
    1028         Map<String, List<String>> listMap = (SortedMap<String, List<String>>) engine.get("listMap");
     1027        Map<String, List<String>> listMap = (Map<String, List<String>>) engine.get("listMap");
    10291028        @SuppressWarnings("unchecked")
    1030         Map<String, List<Collection<String>>> listlistMap = (SortedMap<String, List<Collection<String>>>) engine.get("listlistMap");
     1029        Map<String, List<Collection<String>>> listlistMap = (Map<String, List<Collection<String>>>) engine.get("listlistMap");
    10311030        @SuppressWarnings("unchecked")
    1032         Map<String, List<Map<String, String>>> listmapMap = (SortedMap<String, List<Map<String, String>>>) engine.get("listmapMap");
     1031        Map<String, List<Map<String, String>>> listmapMap = (Map<String, List<Map<String, String>>>) engine.get("listmapMap");
    10331032
    10341033        tmpPref.settingsMap.clear();
Note: See TracChangeset for help on using the changeset viewer.