Changeset 7941 in josm for trunk/src


Ignore:
Timestamp:
2015-01-08T20:31:17+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #10949 - fix false positives in relation checker for multipolygons and boundary relations

File:
1 edited

Legend:

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

    r7885 r7941  
    174174            case WAY:
    175175                return r.types.contains(TaggingPresetType.WAY);
     176            case MULTIPOLYGON:
    176177            case RELATION:
    177178                return r.types.contains(TaggingPresetType.RELATION);
     
    235236        }
    236237
    237         if( possibleMatchError != null) {
     238        if (possibleMatchError != null) {
    238239            // if any error found, then assume that member type was correct
    239240            // and complain about not matching the memberExpression
     
    246247
    247248            // prepare Set of all accepted types in template
    248             EnumSet<TaggingPresetType> types = EnumSet.noneOf(TaggingPresetType.class);
     249            Collection<TaggingPresetType> types = EnumSet.noneOf(TaggingPresetType.class);
    249250            for (Role r: rolePreset.roles) {
    250251                types.addAll(r.types);
Note: See TracChangeset for help on using the changeset viewer.