From 6931011982d2af6135e617bb8d0a37ff2ef2d361 Mon Sep 17 00:00:00 2001 From: isabelle-dr Date: Fri, 3 Mar 2023 16:56:29 -0500 Subject: [PATCH] Update ShapeIncreasingDistanceValidator.java --- .../ShapeIncreasingDistanceValidator.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeIncreasingDistanceValidator.java b/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeIncreasingDistanceValidator.java index 2981c7a2e3..a292b2c21e 100644 --- a/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeIncreasingDistanceValidator.java +++ b/main/src/main/java/org/mobilitydata/gtfsvalidator/validator/ShapeIncreasingDistanceValidator.java @@ -35,8 +35,8 @@ * * */ @GtfsValidator @@ -69,11 +69,11 @@ public void validate(NoticeContainer noticeContainer) { // equal shape_dist_traveled and different coordinates if (!(curr.shapePtLon() == prev.shapePtLon() && curr.shapePtLat() == prev.shapePtLat())) { noticeContainer.addValidationNotice( - new EqualShapeDistanceDiffCoordinatesNotice(prev, curr)); + new EqualShapeDistanceDiffCoordinatesNotice2(prev, curr)); } else { // equal shape_dist_traveled and same coordinates noticeContainer.addValidationNotice( - new EqualShapeDistanceSameCoordinatesNotice(prev, curr)); + new EqualShapeDistanceSameCoordinatesNotice2(prev, curr)); } } } @@ -120,7 +120,7 @@ static class DecreasingShapeDistanceNotice extends ValidationNotice { * *

Severity: {@code SeverityLevel.WARNING} */ - static class EqualShapeDistanceSameCoordinatesNotice extends ValidationNotice { + static class EqualShapeDistanceSameCoordinatesNotice2 extends ValidationNotice { private final String shapeId; private final int csvRowNumber; private final double shapeDistTraveled; @@ -129,7 +129,7 @@ static class EqualShapeDistanceSameCoordinatesNotice extends ValidationNotice { private final double prevShapeDistTraveled; private final int prevShapePtSequence; - EqualShapeDistanceSameCoordinatesNotice(GtfsShape previous, GtfsShape current) { + EqualShapeDistanceSameCoordinatesNotice2(GtfsShape previous, GtfsShape current) { super(SeverityLevel.WARNING); this.shapeId = current.shapeId(); this.csvRowNumber = current.csvRowNumber(); @@ -150,7 +150,7 @@ static class EqualShapeDistanceSameCoordinatesNotice extends ValidationNotice { * *

Severity: {@code SeverityLevel.ERROR} */ - static class EqualShapeDistanceDiffCoordinatesNotice extends ValidationNotice { + static class EqualShapeDistanceDiffCoordinatesNotice2 extends ValidationNotice { private final String shapeId; private final int csvRowNumber; private final double shapeDistTraveled; @@ -160,7 +160,7 @@ static class EqualShapeDistanceDiffCoordinatesNotice extends ValidationNotice { private final int prevShapePtSequence; private final double actualDistanceBetweenShapePoints; - EqualShapeDistanceDiffCoordinatesNotice(GtfsShape previous, GtfsShape current) { + EqualShapeDistanceDiffCoordinatesNotice2(GtfsShape previous, GtfsShape current) { super(SeverityLevel.ERROR); this.shapeId = current.shapeId(); this.csvRowNumber = current.csvRowNumber();