Changeset 15004 in josm for trunk/src


Ignore:
Timestamp:
2019-04-20T22:52:50+02:00 (5 years ago)
Author:
Klumbumbus
Message:
  • see #17567 - make validator warnings more comprehensible
  • fix #17630 - warn about building:part=* together with building=*
  • fix #17593 - warn about sport=football
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java

    r15003 r15004  
    6363        if (!r.hasTag("restriction", SUPPORTED_RESTRICTIONS)) {
    6464            errors.add(TestError.builder(this, Severity.ERROR, UNKNOWN_RESTRICTION)
    65                     .message(tr("Unknown restriction"))
     65                    .message(tr("Unknown turnrestriction"))
    6666                    .primitives(r)
    6767                    .build());
     
    116116                default:
    117117                    errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_ROLE)
    118                             .message(tr("Unexpected role ''{0}'' in restriction", m.getRole()))
     118                            .message(tr("Unexpected role ''{0}'' in turnrestriction", m.getRole()))
    119119                            .primitives(l)
    120120                            .highlight(m.getMember())
     
    135135                } else {
    136136                    errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_ROLE)
    137                             .message(tr("Unexpected role ''{0}'' in restriction", m.getRole()))
     137                            .message(tr("Unexpected role ''{0}'' in turnrestriction", m.getRole()))
    138138                            .primitives(l)
    139139                            .highlight(m.getMember())
     
    142142            } else {
    143143                errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_TYPE)
    144                         .message(tr("Unexpected member type in restriction"))
     144                        .message(tr("Unexpected member type in turnrestriction"))
    145145                        .primitives(l)
    146146                        .highlight(m.getMember())
Note: See TracChangeset for help on using the changeset viewer.