refactoring

This commit is contained in:
Dima-1 2021-01-29 13:45:09 +02:00
parent 74ffdbeba5
commit 2ae5bb6301

View file

@ -915,14 +915,14 @@ public class MapPoiTypes {
if (!otag.equals(tag) && !otag.equals("name")) { if (!otag.equals(tag) && !otag.equals("name")) {
PoiType pat = poiTypesByTag.get(otag + "/" + e.getValue()); PoiType pat = poiTypesByTag.get(otag + "/" + e.getValue());
if (pat == null) { if (pat == null) {
for (String splValue : e.getValue().split(";")) { for(String splValue : e.getValue().split(";")) {
PoiType ps = poiTypesByTag.get(otag + "/" + splValue.trim()); PoiType ps = poiTypesByTag.get(otag + "/" + splValue.trim());
if (ps != null) { if(ps != null) {
a.setAdditionalInfo(ps.getKeyName(), splValue.trim()); a.setAdditionalInfo(ps.getKeyName(), splValue.trim());
} }
} }
pat = poiTypesByTag.get(otag); pat = poiTypesByTag.get(otag);
} }
if (pat != null && pat.isAdditional()) { if (pat != null && pat.isAdditional()) {
a.setAdditionalInfo(pat.getKeyName(), e.getValue()); a.setAdditionalInfo(pat.getKeyName(), e.getValue());
} }