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) {
Map<String, PoiType> translation = new HashMap<String, PoiType>();
for (int i = 0; i < categories.size(); i++) {
PoiCategory pc = categories.get(i);
for (PoiCategory pc : categories) {
if (skipNonEditable && pc.isNotEditableOsm()) {
continue;
}