Replace ArrayList with unmodifiableList
This commit is contained in:
parent
c71f11523e
commit
2151ea5ed7
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue