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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r8308 r8338  
    745745                return null;
    746746            }
    747             HashMap<String, PluginInformation> ret = new HashMap<>();
     747            Map<String, PluginInformation> ret = new HashMap<>();
    748748            for (PluginInformation pi: task.getAvailablePlugins()) {
    749749                ret.put(pi.name, pi);
     
    13191319    public static String getBugReportText() {
    13201320        StringBuilder text = new StringBuilder();
    1321         LinkedList <String> pl = new LinkedList<>(Main.pref.getCollection("plugins", new LinkedList<String>()));
     1321        List <String> pl = new LinkedList<>(Main.pref.getCollection("plugins", new LinkedList<String>()));
    13221322        for (final PluginProxy pp : pluginList) {
    13231323            PluginInformation pi = pp.getPluginInformation();
  • trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java

    r8290 r8338  
    2727import java.util.LinkedList;
    2828import java.util.List;
     29import java.util.Set;
    2930
    3031import javax.swing.JLabel;
     
    276277    protected List<PluginInformation> filterDeprecatedPlugins(List<PluginInformation> plugins) {
    277278        List<PluginInformation> ret = new ArrayList<>(plugins.size());
    278         HashSet<String> deprecatedPluginNames = new HashSet<>();
     279        Set<String> deprecatedPluginNames = new HashSet<>();
    279280        for (PluginHandler.DeprecatedPlugin p : PluginHandler.DEPRECATED_PLUGINS) {
    280281            deprecatedPluginNames.add(p.name);
Note: See TracChangeset for help on using the changeset viewer.