Changeset 16447 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r16443 r16447 294 294 */ 295 295 static void cleanupIgnoredErrors() { 296 cleanup3000();297 296 if (ignoredErrors.size() > 1) { 298 297 List<String> toRemove = new ArrayList<>(); … … 316 315 ignoredErrors.putAll(tmap); 317 316 } 318 }319 320 private static void cleanup3000() {321 // see #19053322 ignoredErrors.entrySet()323 .removeIf(e -> e.getKey().equals("3000_" + e.getValue()));324 317 } 325 318 -
trunk/test/unit/org/openstreetmap/josm/data/validation/OsmValidatorTest.java
r16443 r16447 2 2 package org.openstreetmap.josm.data.validation; 3 3 4 import static org.junit.Assert.assertEquals;5 4 import static org.junit.Assert.assertFalse; 6 5 import static org.junit.Assert.assertNotEquals; 7 6 import static org.junit.Assert.assertTrue; 8 9 import java.util.Collections;10 7 11 8 import org.junit.Before; … … 90 87 91 88 /** 92 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/19053">Bug #19053</a>.93 * {@link OsmValidator#cleanupIgnoredErrors()} must not combine primitives.94 */95 @Test96 public void testCleanupIgnoredErrorsTicket19053() {97 OsmValidator.addIgnoredError("3000_missing tag", "missing tag");98 OsmValidator.cleanupIgnoredErrors();99 assertEquals(Collections.emptyMap(), OsmValidator.getIgnoredErrors());100 }101 102 /**103 89 * Test that tests are really removed, and that core tests cannot be removed 104 90 */
Note:
See TracChangeset
for help on using the changeset viewer.