From a00011693acdfa4aac0f04fd8557719a07256e29 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 16 May 2020 17:18:58 +0200 Subject: [PATCH] clean up --- .../src/main/java/net/osmand/data/TransportStop.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java b/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java index 48eb8e67f7..b7c3687b31 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java @@ -12,6 +12,7 @@ import java.util.List; public class TransportStop extends MapObject { private static final int DELETED_STOP = -1; + public static final String MISSING_STOP_NAME = "#Missing Stop"; private int[] referencesToRoutes = null; private long[] deletedRoutesIds; @@ -22,7 +23,6 @@ public class TransportStop extends MapObject { private List exits; private List routes = null; private LinkedHashMap referencesToRoutesMap; - private boolean missingStop = false; private TransportStopAggregated transportStopAggregated; @@ -32,16 +32,8 @@ public class TransportStop extends MapObject { return routes; } - @Override - public void setName(String name) { - super.setName(name); - if (name != null && name.equals("#Missing Stop")) { - missingStop = true; - } - } - public boolean isMissingStop() { - return missingStop; + return MISSING_STOP_NAME.equals(getName()); } public LinkedHashMap getReferencesToRoutesMap() {