Changeset 4234 in josm


Ignore:
Timestamp:
2011-07-13T15:14:13+02:00 (8 years ago)
Author:
stoecker
Message:

fix #6586 - patch by Casiope - i18n issue

File:
1 edited

Legend:

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

    r4051 r4234  
    77import java.util.Collection;
    88import java.util.HashSet;
     9import java.util.LinkedHashSet;
    910import java.util.LinkedList;
    10 import java.util.LinkedHashSet;
    1111import java.util.List;
    1212import java.util.Map;
    13 import java.util.Vector;
    14 
    15 import org.openstreetmap.josm.Main;
     13
    1614import org.openstreetmap.josm.command.ChangeCommand;
    1715import org.openstreetmap.josm.command.Command;
     
    2523import org.openstreetmap.josm.data.osm.RelationMember;
    2624import org.openstreetmap.josm.data.osm.Way;
    27 import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    2825import org.openstreetmap.josm.data.validation.Severity;
    2926import org.openstreetmap.josm.data.validation.Test;
    3027import org.openstreetmap.josm.data.validation.TestError;
     28import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    3129import org.openstreetmap.josm.tools.MultiMap;
    3230/**
     
    138136    public DuplicateRelation()
    139137    {
    140         super(tr("Duplicated relations")+".",
    141               tr("This test checks that there are no relations with same tags and same members with same roles."));
     138        super(tr("Duplicated relations."),
     139                tr("This test checks that there are no relations with same tags and same members with same roles."));
    142140    }
    143141
     
    146144    public void startTest(ProgressMonitor monitor)
    147145    {
    148         super.startTest(monitor);
     146        super.startTest(monitor);
    149147        relations = new MultiMap<RelationPair, OsmPrimitive>(1000);
    150148        relations_nokeys = new MultiMap<List<RelationMember>, OsmPrimitive>(1000);
     
    154152    public void endTest()
    155153    {
    156         super.endTest();
     154        super.endTest();
    157155        for(LinkedHashSet<OsmPrimitive> duplicated : relations.values() )
    158156        {
     
    199197
    200198        for (OsmPrimitive osm : sel)
    201             if (osm instanceof Relation)
     199            if (osm instanceof Relation) {
    202200                rel_fix.add((Relation)osm);
     201            }
    203202
    204203        if( rel_fix.size() < 2 )
     
    266265
    267266        for (OsmPrimitive osm : sel)
    268             if (osm instanceof Relation)
     267            if (osm instanceof Relation) {
    269268                relations.add((Relation)osm);
     269            }
    270270
    271271        if (relations.size() < 2)
Note: See TracChangeset for help on using the changeset viewer.