Ignore:
Timestamp:
2016-05-17T02:32:56+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S1873 - "static final" arrays should be "private"

File:
1 edited

Legend:

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

    r10216 r10238  
    220220     * List of unmaintained plugins. Not really up-to-date as the vast majority of plugins are not maintained after a few months, sadly...
    221221     */
    222     static final String[] UNMAINTAINED_PLUGINS = new String[] {
     222    static final List<String> UNMAINTAINED_PLUGINS = Collections.unmodifiableList(Arrays.asList(
    223223        "gpsbabelgui",
    224224        "Intersect_way",
     
    226226        "LaneConnector",           // See #11468, #11518, https://github.com/TrifanAdrian/LanecConnectorPlugin/issues/1
    227227        "Remove.redundant.points"  // See #11468, #11518, https://github.com/bularcasergiu/RemoveRedundantPoints (not even created an issue...)
    228     };
     228    ));
    229229
    230230    /**
     
    14861486     */
    14871487    public static Set<String> getDeprecatedAndUnmaintainedPlugins() {
    1488         Set<String> result = new HashSet<>(DEPRECATED_PLUGINS.size() + UNMAINTAINED_PLUGINS.length);
     1488        Set<String> result = new HashSet<>(DEPRECATED_PLUGINS.size() + UNMAINTAINED_PLUGINS.size());
    14891489        for (DeprecatedPlugin dp : DEPRECATED_PLUGINS) {
    14901490            result.add(dp.name);
    14911491        }
    1492         result.addAll(Arrays.asList(UNMAINTAINED_PLUGINS));
     1492        result.addAll(UNMAINTAINED_PLUGINS);
    14931493        return result;
    14941494    }
Note: See TracChangeset for help on using the changeset viewer.