Changeset 6241 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2013-09-21T00:10:46+02:00 (11 years ago)
Author:
Don-vip
Message:

fix more warnings/javadoc in data.validation.tests

Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
11 edited

Legend:

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

    r6240 r6241  
    153153    }
    154154
     155    /**
     156     * Returns the list of "duplicate nodes" errors for the given selection of node and parent test
     157     * @param parentTest The parent test of returned errors
     158     * @param nodes The nodes selction to look into
     159     * @return the list of "duplicate nodes" errors
     160     */
    155161    public List<TestError> buildTestErrors(Test parentTest, List<Node> nodes) {
    156162        List<TestError> errors = new ArrayList<TestError>();
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicatedWayNodes.java

    r5287 r6241  
    1515import org.openstreetmap.josm.data.validation.TestError;
    1616
     17/**
     18 * Checks for ways with identical consecutive nodes.
     19 * @since 3669
     20 */
    1721public class DuplicatedWayNodes extends Test {
    1822    protected static final int DUPLICATE_WAY_NODE = 501;
    1923
     24    /**
     25     * Constructs a new {@code DuplicatedWayNodes} test.
     26     */
    2027    public DuplicatedWayNodes() {
    2128        super(tr("Duplicated way nodes"),
  • trunk/src/org/openstreetmap/josm/data/validation/tests/NodesDuplicatingWayTags.java

    r6069 r6241  
    2727    protected static final int NODE_DUPING_PARENT_WAY_TAGS = 2401;
    2828
     29    /**
     30     * Constructs a new {@code NodesDuplicatingWayTags} test.
     31     */
    2932    public NodesDuplicatingWayTags() {
    3033        super(tr("Nodes duplicating way tags"),
  • trunk/src/org/openstreetmap/josm/data/validation/tests/NodesWithSameName.java

    r6089 r6241  
    1616import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    1717
     18/**
     19 * Finds nodes that have the same name (might be duplicates)
     20 * @since 3669
     21 */
    1822public class NodesWithSameName extends Test {
    1923    protected static final int SAME_NAME = 801;
     
    2125    private Map<String, List<Node>> namesToNodes;
    2226
     27    /**
     28     * Constructs a new {@code NodesWithSameName} test.
     29     */
    2330    public NodesWithSameName() {
    2431        super(tr("Nodes with same name"),
  • trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingAreas.java

    r5927 r6241  
    1818import org.openstreetmap.josm.tools.Utils;
    1919
     20/**
     21 * Checks if areas overlap.
     22 * @since 4448
     23 */
    2024public class OverlappingAreas extends Test {
    2125
     
    2327    protected QuadBuckets<Way> index = new QuadBuckets<Way>();
    2428
     29    /**
     30     * Constructs a new {@code OverlappingAreas} test.
     31     */
    2532    public OverlappingAreas() {
    2633        super(tr("Overlapping Areas"), tr("This test checks if areas overlap."));
  • trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java

    r6240 r6241  
    3434    protected static final int POWER_LINES = 2501;
    3535   
     36    /** Values for {@code power} key interpreted as power lines */
    3637    public static final Collection<String> POWER_LINE_TAGS = Arrays.asList("line", "minor_line");
     38    /** Values for {@code power} key interpreted as power towers */
    3739    public static final Collection<String> POWER_TOWER_TAGS = Arrays.asList("tower", "pole");
     40    /** Values for {@code power} key interpreted as power stations */
    3841    public static final Collection<String> POWER_STATION_TAGS = Arrays.asList("station", "sub_station", "plant", "generator");
     42    /** Values for {@code power} key interpreted as allowed power items */
    3943    public static final Collection<String> POWER_ALLOWED_TAGS = Arrays.asList("switch", "transformer", "busbar", "generator");
    4044   
  • trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java

    r6240 r6241  
    8383        private Collection<Node> nodes = new LinkedList<Node>();
    8484        private Collection<Way> ways = new LinkedList<Way>();
    85         private Collection<Way> closedways = new LinkedList<Way>();
    8685        private Collection<Way> openways = new LinkedList<Way>();
    8786        private Collection<Relation> relations = new LinkedList<Relation>();
     
    129128                } else if(m.isWay()) {
    130129                    ri.ways.add(m.getWay());
    131                     if (m.getWay().isClosed()) {
    132                         ri.closedways.add(m.getWay());
    133                     } else {
     130                    if (!m.getWay().isClosed()) {
    134131                        ri.openways.add(m.getWay());
    135132                    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SelfIntersectingWay.java

    r4869 r6241  
    2020    protected static final int SELF_INTERSECT = 401;
    2121
     22    /**
     23     * Constructs a new {@code SelfIntersectingWay} test.
     24     */
    2225    public SelfIntersectingWay() {
    2326        super(tr("Self-intersecting ways"),
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java

    r6069 r6241  
    1818import org.openstreetmap.josm.data.validation.TestError;
    1919
     20/**
     21 * Checks if turnrestrictions are valid
     22 * @since 3669
     23 */
    2024public class TurnrestrictionTest extends Test {
    2125
     
    3640    protected static final int SUPERFLUOUS = 1815;
    3741
     42    /**
     43     * Constructs a new {@code TurnrestrictionTest}.
     44     */
    3845    public TurnrestrictionTest() {
    3946        super(tr("Turnrestrictions"), tr("This test checks if turnrestrictions are valid"));
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

    r6240 r6241  
    2121import org.openstreetmap.josm.data.coor.LatLon;
    2222import org.openstreetmap.josm.data.osm.BBox;
    23 import org.openstreetmap.josm.data.osm.DataSet;
    2423import org.openstreetmap.josm.data.osm.Node;
    2524import org.openstreetmap.josm.data.osm.OsmUtils;
     
    4847    private Set<Node> othernodes; // nodes appearing at least twice
    4948    private Area dsArea;
    50     private DataSet ds;
    5149
    5250    private double mindist;
     
    7169        mindist = Main.pref.getDouble(PREFIX + ".node_way_distance", 10.0);
    7270        minmiddledist = Main.pref.getDouble(PREFIX + ".way_way_distance", 0.0);
    73         this.ds = Main.main.getCurrentDataSet();
    74         this.dsArea = ds.getDataSourceArea();
     71        this.dsArea = Main.main.getCurrentDataSet().getDataSourceArea();
    7572    }
    7673
  • trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java

    r5927 r6241  
    1616import org.openstreetmap.josm.gui.mappaint.ElemStyles;
    1717
     18/**
     19 * Checks for ways connected to areas.
     20 * @since 4682
     21 */
    1822public class WayConnectedToArea extends Test {
    1923
     24    /**
     25     * Constructs a new {@code WayConnectedToArea} test.
     26     */
    2027    public WayConnectedToArea() {
    2128        super(tr("Way connected to Area"), tr("Checks for ways connected to areas."));
Note: See TracChangeset for help on using the changeset viewer.