Changeset 15129 in josm


Ignore:
Timestamp:
2019-05-28T08:01:18+02:00 (5 years ago)
Author:
GerdP
Message:

see #17011: Ignore relations without members in DuplicateRelation test

Don't produce "Relations with same members" for relations without members. They will be flagged as empty relations.

File:
1 edited

Legend:

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

    r14654 r15129  
    227227    @Override
    228228    public void visit(Relation r) {
    229         if (!r.isUsable() || r.hasIncompleteMembers() || "tmc".equals(r.get("type")) || "TMC".equals(r.get("type")))
     229        if (!r.isUsable() || r.hasIncompleteMembers() || "tmc".equals(r.get("type")) || "TMC".equals(r.get("type"))
     230                || r.getMembers().isEmpty())
    230231            return;
    231232        List<RelationMember> rMembers = r.getMembers();
Note: See TracChangeset for help on using the changeset viewer.