made getLegs() synchronized on CourseImpl to protect the copying of the legs collection

This commit is contained in:
Axel Uhl committed 2012-06-11 13:18:45 +02:00
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);
}