Skip to content

Commit

Permalink
Log putTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
RZR-UA committed Dec 25, 2024
1 parent 046cf8e commit 6fc6847
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions OsmAnd-java/src/main/java/net/osmand/osm/PoiType.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
package net.osmand.osm;

import net.osmand.PlatformUtil;
import net.osmand.search.core.SearchCoreFactory;
import org.apache.commons.logging.Log;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;

public class PoiType extends AbstractPoiType {
private static final Log LOG = PlatformUtil.getLog(PoiType.class);

public static final int DEFAULT_ORDER = 90;
public static final int DEFAULT_MIN_COUNT = 3;
Expand Down Expand Up @@ -192,10 +197,16 @@ public Map<PoiCategory, LinkedHashSet<String>> putTypes(Map<PoiCategory, LinkedH
PoiType rt = getReferenceType();
PoiType poiType = rt != null ? rt : this;
if (!acceptedTypes.containsKey(poiType.category)) {
LOG.info(String.format(
"putTypes acceptedTypes.put(%s)", poiType.category
));
acceptedTypes.put(poiType.category, new LinkedHashSet<String>());
}
LinkedHashSet<String> set = acceptedTypes.get(poiType.category);
if(set != null) {
LOG.info(String.format(
"putTypes set.add (%s)", poiType.getKeyName()
));
set.add(poiType.getKeyName());
}
return acceptedTypes;
Expand Down

0 comments on commit 6fc6847

Please sign in to comment.