Changeset 18714 in josm for trunk/src


Ignore:
Timestamp:
2023-04-25T16:11:37+02:00 (12 months ago)
Author:
taylor.smock
Message:

Fix #22898: JOSM Validator CLI errors out when is run with --load-preferences argument (patch by emanuel_raymond, modified)

File:
1 edited

Legend:

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

    r18366 r18714  
    431431            if (pref instanceof MemoryPreferences) {
    432432                final MemoryPreferences memoryPreferences = (MemoryPreferences) pref;
    433                 tempPreferences.getAllSettings().entrySet().stream().filter(entry -> entry.getValue().isNew())
    434                         .forEach(entry -> memoryPreferences.putSetting(entry.getKey(), entry.getValue()));
     433                tempPreferences.getAllSettings().forEach(memoryPreferences::putSetting);
    435434            } else {
    436435                throw new JosmRuntimeException(tr("Preferences are not the expected type"));
Note: See TracChangeset for help on using the changeset viewer.