Ignore:
Timestamp:
2020-06-14T20:19:59+02:00 (4 years ago)
Author:
simon04
Message:

see #19334 - https://errorprone.info/bugpattern/StringSplitter

File:
1 edited

Legend:

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

    r16182 r16643  
    307307        String classPath = attr.getValue(Attributes.Name.CLASS_PATH);
    308308        if (classPath != null) {
    309             for (String entry : classPath.split(" ")) {
     309            for (String entry : classPath.split(" ", -1)) {
    310310                File entryFile;
    311311                if (new File(entry).isAbsolute() || file == null) {
     
    510510    public boolean matches(String filter) {
    511511        if (filter == null) return true;
    512         String[] words = filter.split("\\s+");
     512        String[] words = filter.split("\\s+", -1);
    513513        for (String word: words) {
    514514            if (matches(word, name)
     
    556556        List<String> requiredPlugins = new ArrayList<>();
    557557        if (pluginList != null) {
    558             for (String s : pluginList.split(";")) {
     558            for (String s : pluginList.split(";", -1)) {
    559559                String plugin = s.trim();
    560560                if (!plugin.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.