Changeset 17436 in josm
- Timestamp:
- 2021-01-04T11:54:31+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
r15975 r17436 79 79 } 80 80 81 if (ValidatorPrefHelper.PREF_USE_IGNORE.get()) { 82 boolean allIgnored = true; 83 for (TestError error : errors) { 84 if (!error.updateIgnored()) { 85 allIgnored = false; 86 } 87 } 88 if (allIgnored) 89 return true; 81 if (Boolean.TRUE.equals(ValidatorPrefHelper.PREF_USE_IGNORE.get())) { 82 errors.forEach(TestError::updateIgnored); 90 83 } 91 84 … … 99 92 map.validatorDialog.tree.setErrors(errors); 100 93 } 101 if (errors. isEmpty())94 if (errors.stream().allMatch(TestError::isIgnored)) 102 95 return true; 103 96
Note:
See TracChangeset
for help on using the changeset viewer.