Replace ArrayList with unmodifiableList

This commit is contained in:
Alexander Sytnyk 2017-09-15 15:30:38 +03:00
parent c71f11523e
commit 2151ea5ed7

View file

@ -758,7 +758,7 @@ public class GPXUtilities {
private TrkSegment generalSegment; private TrkSegment generalSegment;
public List<WptPt> getPoints() { public List<WptPt> getPoints() {
return new ArrayList<>(points); return Collections.unmodifiableList(points);
} }
public boolean isPointsEmpty() { public boolean isPointsEmpty() {