### Eclipse Workspace Patch 1.0
#P JOSM
|
|
|
361 | 361 | MultiMap<OsmPrimitive, String> withErrors = new MultiMap<OsmPrimitive, String>(); |
362 | 362 | |
363 | 363 | if (checkComplex) { |
364 | | Map<String, String> props = (p.getKeys() == null) ? Collections.<String, String>emptyMap() : p.getKeys(); |
365 | | for (Entry<String, String> prop : props.entrySet()) { |
366 | | boolean ignore = true; |
367 | | String key1 = prop.getKey(); |
368 | | String value1 = prop.getValue(); |
369 | | |
370 | | for (IgnoreTwoKeyPair a : ignoreDataTwoKeyPair) { |
371 | | if (key1.equals(a.key1) && value1.equals(a.value1)) { |
372 | | ignore = false; |
373 | | for (Entry<String, String> prop2 : props.entrySet()) { |
374 | | String key2 = prop2.getKey(); |
375 | | String value2 = prop2.getValue(); |
376 | | for (IgnoreTwoKeyPair b : ignoreDataTwoKeyPair) { |
377 | | if (key2.equals(b.key2) && value2.equals(b.value2)) { |
378 | | ignore = true; |
379 | | break; |
380 | | } |
381 | | } |
382 | | if (ignore) { |
383 | | break; |
384 | | } |
385 | | } |
386 | | } |
387 | | if (ignore) { |
388 | | break; |
389 | | } |
390 | | } |
391 | | |
392 | | if (!ignore) { |
393 | | errors.add( new TestError(this, Severity.OTHER, tr("Suspicious tag/value combinations"), |
394 | | tr("Suspicious tag/value combinations"), tr("Suspicious tag/value combinations"), 1272, p) ); |
395 | | withErrors.put(p, "TC"); |
396 | | } |
397 | | } |
398 | | |
399 | 364 | Map<String, String> keys = p.getKeys(); |
400 | 365 | for (CheckerData d : checkerData) { |
401 | 366 | if (d.match(p, keys)) { |