Changeset 18506 in josm for trunk


Ignore:
Timestamp:
2022-07-04T06:42:13+02:00 (2 years ago)
Author:
GerdP
Message:

fix #22187, see #21825: Same error code 1708 for two different problems
I introduced this annoying bug with r14990 and it probably caused lots of empty relations since users where not warned when they ignored the less important message "Role of relation member does not match template expression"

File:
1 edited

Legend:

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

    r18232 r18506  
    5353    /** Empty role found when expecting one of ''{0}'' */
    5454    public static final int ROLE_EMPTY       = 1702;
    55     /** Role of relation member does not match template expression ''{0}'' in preset {1} */
    56     public static final int WRONG_ROLE       = 1708;
    5755    /** Number of ''{0}'' roles too high ({1}) */
    5856    public static final int HIGH_COUNT       = 1704;
     
    6361    /** Relation type is unknown */
    6462    public static final int RELATION_UNKNOWN = 1707;
    65     /** Relation is empty */
    66     public static final int RELATION_EMPTY   = 1708;
     63    /** Role of relation member does not match template expression ''{0}'' in preset {1} */
     64    public static final int WRONG_ROLE       = 1708;
    6765    /** Type ''{0}'' of relation member with role ''{1}'' does not match accepted types ''{2}'' in preset {3} */
    6866    public static final int WRONG_TYPE       = 1709;
    6967    /** Relations build circular dependencies */
    7068    public static final int RELATION_LOOP    = 1710;
     69    /** Relation is empty */
     70    public static final int RELATION_EMPTY   = 1711; // was 1708 up to r18505
    7171    // CHECKSTYLE.ON: SingleSpaceSeparator
    7272
Note: See TracChangeset for help on using the changeset viewer.