Changeset 18025 in josm


Ignore:
Timestamp:
2021-07-15T01:43:08+02:00 (3 years ago)
Author:
Don-vip
Message:

improve stream - might be the cause of random CME seen with Java 17/18 when running PluginPreferenceTest.testAddGui

See https://github.com/openstreetmap/josm/runs/3070519001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java

    r17333 r18025  
    140140    public List<PluginInformation> getSelectedPlugins() {
    141141        return availablePlugins.stream()
    142                 .filter(pi -> selectedPluginsMap.get(pi) != null)
    143                 .filter(selectedPluginsMap::get)
     142                .filter(pi -> selectedPluginsMap.get(pi) == Boolean.TRUE)
    144143                .collect(Collectors.toList());
    145144    }
Note: See TracChangeset for help on using the changeset viewer.