small refactoring
This commit is contained in:
parent
fe4b6ff59e
commit
ce7ffdab92
1 changed files with 1 additions and 3 deletions
|
@ -45,7 +45,6 @@ import java.net.MalformedURLException;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
@ -525,8 +524,7 @@ public class OpenstreetmapRemoteUtil implements OpenstreetmapUtil {
|
||||||
entity.removeTag(poiType.getEditOsmTag());
|
entity.removeTag(poiType.getEditOsmTag());
|
||||||
entity.putTagNoLC(EditPoiData.POI_TYPE_TAG, poiType.getTranslation());
|
entity.putTagNoLC(EditPoiData.POI_TYPE_TAG, poiType.getTranslation());
|
||||||
} else {
|
} else {
|
||||||
List<PoiType> poiTypes = type.getPoiTypes();
|
for (PoiType pt : type.getPoiTypes()) {
|
||||||
for (PoiType pt : poiTypes) {
|
|
||||||
if (pt.getEditOsmValue().equals(entity.getTag(pt.getEditOsmTag()))) {
|
if (pt.getEditOsmValue().equals(entity.getTag(pt.getEditOsmTag()))) {
|
||||||
entity.removeTag(pt.getEditOsmTag());
|
entity.removeTag(pt.getEditOsmTag());
|
||||||
entity.putTagNoLC(EditPoiData.POI_TYPE_TAG, pt.getTranslation());
|
entity.putTagNoLC(EditPoiData.POI_TYPE_TAG, pt.getTranslation());
|
||||||
|
|
Loading…
Reference in a new issue