@@ -195,7 +195,7 @@ private void processExternalFeautre(SourceFeature feature, FeatureCollector feat
195195 .setAttr ("identifier" , feature .getString ("identifier" ))
196196 .setId (feature .id ());
197197 var languages = feature .hasTag ("poiLanguages" ) ? (ArrayList <String >)feature .getTag ("poiLanguages" ) : new ArrayList <String >();
198- setFeaturePropertiesFromPointDocument (tileFeature , pointDocument , languages );
198+ setFeaturePropertiesFromPointDocument (tileFeature , pointDocument , languages . toArray () );
199199 }
200200
201201 private void processOsmRelationFeature (SourceFeature feature , FeatureCollector features ) throws GeometryException {
@@ -538,7 +538,7 @@ private boolean isInterestingPoint(PointDocument pointDocument) {
538538 pointDocument .image != null ;
539539 }
540540
541- private void setFeaturePropertiesFromPointDocument (Feature tileFeature , PointDocument pointDocument , ArrayList < String > languages ) {
541+ private void setFeaturePropertiesFromPointDocument (Feature tileFeature , PointDocument pointDocument , String [] languages ) {
542542 tileFeature .setAttr ("wikidata" , pointDocument .wikidata )
543543 .setAttr ("wikimedia_commons" , pointDocument .wikimedia_commons )
544544 .setAttr ("image" , pointDocument .image )
@@ -553,7 +553,7 @@ private void setFeaturePropertiesFromPointDocument(Feature tileFeature, PointDoc
553553 tileFeature .setAttr ("name:" + lang , pointDocument .name .get (lang ));
554554 tileFeature .setAttr ("description:" + lang , pointDocument .description .get (lang ));
555555 }
556- if (pointDocument .name .has ("default" )) {
556+ if (pointDocument .name .containsKey ("default" )) {
557557 tileFeature .setAttr ("name" , pointDocument .name .get ("default" ));
558558 }
559559 }
0 commit comments