From b043714ee58362ff7a4d064edc1a19ea50b45d81 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Thu, 9 Jan 2020 16:31:03 -0700 Subject: [PATCH] Don't run intensive routing check on upload Signed-off-by: Taylor Smock --- .../mapwithai/data/validation/tests/RoutingIslandsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/RoutingIslandsTest.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/RoutingIslandsTest.java index a875661..97157d9 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/RoutingIslandsTest.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/data/validation/tests/RoutingIslandsTest.java @@ -100,8 +100,8 @@ public class RoutingIslandsTest extends Test { errors.add(TestError.builder(this, SEVERITY_MAP.get(LONELY_WAY), LONELY_WAY).primitives(way) .message(tr("MapWithAI (experimental)"), marktr("Routable way not connected to other ways")) .build()); - } else if ((ValidatorPrefHelper.PREF_OTHER.get() || ValidatorPrefHelper.PREF_OTHER_UPLOAD.get() - || !Severity.OTHER.equals(SEVERITY_MAP.get(ROUTING_ISLAND)))) { + } else if (((ValidatorPrefHelper.PREF_OTHER.get() || ValidatorPrefHelper.PREF_OTHER_UPLOAD.get() + || !Severity.OTHER.equals(SEVERITY_MAP.get(ROUTING_ISLAND)))) && !isBeforeUpload) { if (way.hasKey(HIGHWAY)) { potentialHighways.add(way); } else if (way.hasKey(WATERWAY)) {