diff --git a/src/main/java/org/matsim/prepare/population/FacilityIndex.java b/src/main/java/org/matsim/prepare/population/FacilityIndex.java index f24ce9e0..f24908b1 100644 --- a/src/main/java/org/matsim/prepare/population/FacilityIndex.java +++ b/src/main/java/org/matsim/prepare/population/FacilityIndex.java @@ -46,8 +46,8 @@ final class FacilityIndex { NavigableMap, ActivityFacility> afs = all.getFacilitiesForActivityType(act); for (ActivityFacility af : afs.values()) { - STRtree index = this.index.computeIfAbsent(act, k -> new STRtree()); - index.insert(MGC.coord2Point(af.getCoord()).getEnvelopeInternal(), af); + STRtree idx = this.index.computeIfAbsent(act, k -> new STRtree()); + idx.insert(MGC.coord2Point(af.getCoord()).getEnvelopeInternal(), af); } }