Ignore:
Timestamp:
2013-06-16T13:39:50+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #8799 - Follow conventional visitor design pattern by renaming visit(Visitor) to accept(Visitor)

Location:
trunk/src/org/openstreetmap/josm/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyKeyCommand.java

    r4918 r6009  
    7272        if (objects.size() == 1) {
    7373            NameVisitor v = new NameVisitor();
    74             objects.iterator().next().visit(v);
     74            objects.iterator().next().accept(v);
    7575            text += " "+tr(v.className)+" "+v.name;
    7676        } else {
     
    9393        final NameVisitor v = new NameVisitor();
    9494        for (final OsmPrimitive osm : objects) {
    95             osm.visit(v);
     95            osm.accept(v);
    9696            children.add(new PseudoCommand() {
    9797                @Override
  • trunk/src/org/openstreetmap/josm/command/Command.java

    r5824 r6009  
    8686        fillModifiedData(all, all, all);
    8787        for (OsmPrimitive osm : all) {
    88             osm.visit(visitor);
     88            osm.accept(visitor);
    8989        }
    9090        cloneMap = visitor.orig;
Note: See TracChangeset for help on using the changeset viewer.