Ignore:
Timestamp:
2008-12-23T15:07:05+01:00 (16 years ago)
Author:
stoecker
Message:

removed usage of tab stops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/AddVisitor.java

    r655 r1169  
    99/**
    1010 * Visitor that adds the visited object to the dataset given at constructor.
    11  * 
     11 *
    1212 * Is not capable of adding keys.
    13  * 
     13 *
    1414 * @author imi
    1515 */
    1616public class AddVisitor implements Visitor {
    17        
    18         protected final DataSet ds;
    19        
    20         public AddVisitor(DataSet ds) {
    21                 this.ds = ds;
    22         }
    23        
    24         public void visit(Node n) {
    25                 ds.nodes.add(n);
    26         }
    27         public void visit(Way w) {
    28                 ds.ways.add(w);
    29         }
    30         public void visit(Relation e) {
    31                 ds.relations.add(e);
    32         }
     17
     18    protected final DataSet ds;
     19
     20    public AddVisitor(DataSet ds) {
     21        this.ds = ds;
     22    }
     23
     24    public void visit(Node n) {
     25        ds.nodes.add(n);
     26    }
     27    public void visit(Way w) {
     28        ds.ways.add(w);
     29    }
     30    public void visit(Relation e) {
     31        ds.relations.add(e);
     32    }
    3333}
Note: See TracChangeset for help on using the changeset viewer.