refactoring
This commit is contained in:
parent
74ffdbeba5
commit
2ae5bb6301
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue