Class DuplicatedWayNodes

java.lang.Object
org.openstreetmap.josm.data.validation.Test
org.openstreetmap.josm.data.validation.tests.DuplicatedWayNodes
All Implemented Interfaces:
OsmPrimitiveVisitor

public class DuplicatedWayNodes extends Test
Checks for ways with identical consecutive nodes.
Since:
3669
  • Field Details

  • Constructor Details

    • DuplicatedWayNodes

      Constructs a new DuplicatedWayNodes test.
  • Method Details

    • visit

      public void visit(Way w)
      Description copied from interface: OsmPrimitiveVisitor
      Visiting call for lines.
      Specified by:
      visit in interface OsmPrimitiveVisitor
      Overrides:
      visit in class Test
      Parameters:
      w - The way to inspect.
    • fixError

      public Command fixError(TestError testError)
      Description copied from class: Test
      Fixes the error with the appropriate command
      Overrides:
      fixError in class Test
      Parameters:
      testError - error to fix
      Returns:
      The command to fix the error
    • isFixable

      public boolean isFixable(TestError testError)
      Description copied from class: Test
      Returns true if the given error can be fixed automatically
      Overrides:
      isFixable in class Test
      Parameters:
      testError - The error to check if can be fixed
      Returns:
      true if the error can be fixed