From 2151ea5ed7f102267c015713c30521e6b3e7dc3f Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 15 Sep 2017 15:30:38 +0300 Subject: [PATCH] Replace ArrayList with unmodifiableList --- OsmAnd/src/net/osmand/plus/GPXUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/GPXUtilities.java b/OsmAnd/src/net/osmand/plus/GPXUtilities.java index de861a4d88..f0021ef8c3 100644 --- a/OsmAnd/src/net/osmand/plus/GPXUtilities.java +++ b/OsmAnd/src/net/osmand/plus/GPXUtilities.java @@ -758,7 +758,7 @@ public class GPXUtilities { private TrkSegment generalSegment; public List getPoints() { - return new ArrayList<>(points); + return Collections.unmodifiableList(points); } public boolean isPointsEmpty() {