Java 6 fix

This commit is contained in:
Roman Inflianskas 2016-06-06 11:42:02 +03:00
parent 9f92c83940
commit b3623d0f7b

View file

@ -263,7 +263,7 @@ public class BinaryMapAddressReaderAdapter {
case OsmandOdb.CityIndex.ATTRIBUTETAGIDS_FIELD_NUMBER :
int tgid = codedIS.readUInt32();
if(additionalTags == null) {
additionalTags = new LinkedList<>();
additionalTags = new LinkedList<String>();
}
if(additionalTagsTable != null && tgid < additionalTagsTable.size()) {
additionalTags.add(additionalTagsTable.get(tgid));