Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Small memory footprint reduction for GeonamesLocation.

luccioman6bc2bf1aa452
diff --git a/source/net/yacy/cora/geo/GeonamesLocation.java b/source/net/yacy/cora/geo/GeonamesLocation.java
index b7bb5d02d..5111d499a 100644
--- a/source/net/yacy/cora/geo/GeonamesLocation.java
+++ b/source/net/yacy/cora/geo/GeonamesLocation.java
@@ -133,7 +133,7 @@ public class GeonamesLocation implements Locations {
fields = CommonPattern.TAB.split(line);
final long population = Long.parseLong(fields[14]);
if (minPopulation > 0 && population < minPopulation) continue;
- final int geonameid = Integer.parseInt(fields[0]);
+ final Integer geonameid = Integer.valueOf(fields[0]);
locnames = new HashSet<StringBuilder>();
locnames.add(new StringBuilder(fields[1]));
locnames.add(new StringBuilder(fields[2]));