Fix ConcurrentModificationException

This commit is contained in:
Nazar-Kutz 2020-05-20 12:33:10 +03:00
parent 43ba5d203f
commit 49d346771c

View file

@ -203,8 +203,7 @@ public class MapPoiTypes {
public Map<String, PoiType> getAllTranslatedNames(boolean skipNonEditable) { public Map<String, PoiType> getAllTranslatedNames(boolean skipNonEditable) {
Map<String, PoiType> translation = new HashMap<String, PoiType>(); Map<String, PoiType> translation = new HashMap<String, PoiType>();
for (int i = 0; i < categories.size(); i++) { for (PoiCategory pc : categories) {
PoiCategory pc = categories.get(i);
if (skipNonEditable && pc.isNotEditableOsm()) { if (skipNonEditable && pc.isNotEditableOsm()) {
continue; continue;
} }