Ticket #15452: TagChecker.java.patch
File TagChecker.java.patch, 1.3 KB (added by , 3 years ago) |
---|
-
org/openstreetmap/josm/data/validation/tests/TagChecker.java
448 448 } 449 449 if (checkValues && (value != null && value.length() > 255) && !withErrors.contains(p, "LV")) { 450 450 errors.add(TestError.builder(this, Severity.ERROR, LONG_VALUE) 451 .message(tr("Tag value longer than allowed"), s, key)451 .message(tr("Tag value longer than 255 characters ({0} characters).", value.length()), s, key) 452 452 .primitives(p) 453 453 .build()); 454 454 withErrors.put(p, "LV"); … … 455 455 } 456 456 if (checkKeys && (key != null && key.length() > 255) && !withErrors.contains(p, "LK")) { 457 457 errors.add(TestError.builder(this, Severity.ERROR, LONG_KEY) 458 .message(tr("Tag key longer than allowed"), s, key)458 .message(tr("Tag key longer than 255 characters ({0} characters).", key.length()), s, key) 459 459 .primitives(p) 460 460 .build()); 461 461 withErrors.put(p, "LK");