Ignore:
Timestamp:
2009-11-02T07:51:28+01:00 (10 years ago)
Author:
jttt
Message:

Change most occurrences of Dataset.nodes/ways/relations with getNodes()/../.. or addPrimitive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r1938 r2381  
    7272    public Collection<Command> execute(Way oldway, Way way) throws UserCancelException {
    7373        Map<OsmPrimitive, List<TagCorrection>> tagCorrectionsMap =
    74             new HashMap<OsmPrimitive, List<TagCorrection>>();
     74                new HashMap<OsmPrimitive, List<TagCorrection>>();
    7575
    7676        ArrayList<OsmPrimitive> primitives = new ArrayList<OsmPrimitive>();
     
    112112
    113113        Map<OsmPrimitive, List<RoleCorrection>> roleCorrectionMap =
    114             new HashMap<OsmPrimitive, List<RoleCorrection>>();
     114                new HashMap<OsmPrimitive, List<RoleCorrection>>();
    115115        roleCorrectionMap.put(way, new ArrayList<RoleCorrection>());
    116116
    117         for (Relation relation : Main.main.getCurrentDataSet().relations) {
     117        for (Relation relation : Main.main.getCurrentDataSet().getRelations()) {
    118118            int position = 0;
    119119            for (RelationMember member : relation.getMembers()) {
Note: See TracChangeset for help on using the changeset viewer.