mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 06:10:56 +00:00
made getLegs() synchronized on CourseImpl to protect the copying of the legs collection
This commit is contained in:
1 parent
8faddc3808
commit
d72f25f06a
1 file changed
+1
-1
@@ -156,7 +156,7 @@ public class CourseImpl extends NamedImpl implements Course {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Leg> getLegs() {
|
||||
public synchronized List<Leg> getLegs() {
|
||||
return new ArrayList<Leg>(legs);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user