Changeset 18775 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2023-07-10T17:07:42+02:00 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
r18752 r18775 15 15 import org.openstreetmap.josm.data.APIDataSet; 16 16 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 import org.openstreetmap.josm.data.preferences.sources.ValidatorPrefHelper; 17 18 import org.openstreetmap.josm.data.validation.OsmValidator; 19 import org.openstreetmap.josm.data.validation.Severity; 18 20 import org.openstreetmap.josm.data.validation.TestError; 19 21 import org.openstreetmap.josm.data.validation.ValidationTask; … … 51 53 OsmValidator.initializeTests(); 52 54 new ValidationTask(errors -> { 55 if (!Boolean.TRUE.equals(ValidatorPrefHelper.PREF_OTHER_UPLOAD.get())) { 56 // Use >= just in case we add additional levels. 57 errors.removeIf(error -> error.getSeverity().getLevel() >= Severity.OTHER.getLevel()); 58 } 53 59 if (errors.stream().allMatch(TestError::isIgnored)) { 54 60 returnCode.set(true);
Note:
See TracChangeset
for help on using the changeset viewer.