diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RouteStatisticsHelper.java b/OsmAnd-java/src/main/java/net/osmand/router/RouteStatisticsHelper.java index a32d56e63f..92d756c95f 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RouteStatisticsHelper.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RouteStatisticsHelper.java @@ -254,7 +254,7 @@ public class RouteStatisticsHelper { } Map makePartition(List routeAttributes) { - Map partition = new TreeMap<>(); + final Map partition = new TreeMap<>(); for (RouteSegmentAttribute attribute : routeAttributes) { RouteSegmentAttribute attr = partition.get(attribute.propertyName); if (attr == null) {