mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
copy the settings collections to avoid them overwriting themselves during LeaderboardPanel.updateSettings
Change-Id: Iad76b1fafafb5f39391744a276ee0ed95af43f95
This commit is contained in:
1 parent
55e5c77d7e
commit
e062301155
9 files changed
+70
-32
No files matched your search
@@ -504,4 +504,14 @@ public class Util {
|
||||
addAll(visibleCourseAreas, list);
|
||||
return list;
|
||||
}
|
||||
|
||||
public static <T> List<T> cloneListOrNull(List<T> list) {
|
||||
final List<T> result;
|
||||
if (list == null) {
|
||||
result = null;
|
||||
} else {
|
||||
result = new ArrayList<T>(list);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user