diff --git a/DataExtractionOSM/src/net/osmand/data/preparation/IndexVectorMapCreator.java b/DataExtractionOSM/src/net/osmand/data/preparation/IndexVectorMapCreator.java index cd58f9f263..7e08851432 100644 --- a/DataExtractionOSM/src/net/osmand/data/preparation/IndexVectorMapCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/preparation/IndexVectorMapCreator.java @@ -282,8 +282,7 @@ public class IndexVectorMapCreator extends AbstractIndexPartCreator { List l = new ArrayList(); l.add(w); boolean add = true; - int iRsize = incompletedRings.size(); - for (int k = 0; k < iRsize;) { + for (int k = 0; k < incompletedRings.size();) { boolean remove = false; List i = incompletedRings.get(k); Way last = i.get(i.size() - 1); diff --git a/DataExtractionOSM/src/net/osmand/osm/util/MinskTransReader.java b/DataExtractionOSM/src/net/osmand/osm/util/MinskTransReader.java index 72f87cc84e..cf2aee8739 100644 --- a/DataExtractionOSM/src/net/osmand/osm/util/MinskTransReader.java +++ b/DataExtractionOSM/src/net/osmand/osm/util/MinskTransReader.java @@ -126,8 +126,7 @@ public class MinskTransReader { Map correlated = new LinkedHashMap(); Map reverse = new LinkedHashMap(); List stopsToCheck = new ArrayList(stopsMap.values()); - int sTCsize = stopsToCheck.size(); - for(int k =0; k closestObjects = busStops.getClosestObjects(r.latitude, r.longitude, 0, 1); // filter closest objects