Changeset 15375 in josm


Ignore:
Timestamp:
2019-09-25T19:11:51+02:00 (2 months ago)
Author:
Don-vip
Message:

fix #11388 - detect duplicated relations even if members order differ

File:
1 edited

Legend:

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

    r15129 r15375  
    110110     */
    111111    private static class RelationMembers {
    112         /** List of member objects of the relation */
    113         private final List<RelMember> members;
     112        /** Set of member objects of the relation */
     113        private final Set<RelMember> members;
    114114
    115115        /** Store relation information
     
    117117         */
    118118        RelationMembers(List<RelationMember> members) {
    119             this.members = new ArrayList<>(members.size());
     119            this.members = new HashSet<>(members.size());
    120120            for (RelationMember member : members) {
    121121                this.members.add(new RelMember(member));
Note: See TracChangeset for help on using the changeset viewer.