source: josm/trunk/src/org/openstreetmap/josm/data/osm/visitor/AbstractVisitor.java@ 12809

Last change on this file since 12809 was 12809, checked in by bastiK, 7 years ago

replace abstract class AbstractVisitor by interface OsmPrimitiveVisitor; deprecate Visitor

  • data.osm.visitor.Visitor awkwardly mixes OsmPrimitive types and Changeset class; this may have been used in the past, but is no longer needed; AbstractVisitor should have been a super-interface of Visitor in the first place
  • hopefully, this is binary compatible and plugins can be updated gracefully
  • Property svn:eol-style set to native
File size: 546 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm.visitor;
3
4import org.openstreetmap.josm.data.osm.Changeset;
5
6/**
7 * This class serves as a base class for most simple visitors,
8 * blocking out the "changeset" visit so as to avoid cluttering
9 * the visitors which are not interested.
10 *
11 * @author fred
12 * @deprecated use {@link OsmPrimitiveVisitor}
13 */
14@Deprecated
15public abstract class AbstractVisitor implements Visitor {
16
17 @Override
18 public void visit(Changeset cs) {
19 // do nothing
20 }
21}
Note: See TracBrowser for help on using the repository browser.