mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
Merge branch 'main' into bug5067
This commit is contained in:
+4
-1
@@ -405,10 +405,13 @@ public class TrackImpl<FixType extends Timed> implements Track<FixType> {
|
||||
return add(fix, /* replace */ false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@code true} if the fix was added or replaced; {@code false} in case no change was performed
|
||||
*/
|
||||
protected boolean add(FixType fix, boolean replace) {
|
||||
lockForWrite();
|
||||
try {
|
||||
final AddResult addResult = addWithoutLocking(fix, replace);
|
||||
final AddResult addResult = addWithoutLocking(fix, replace);
|
||||
return addResult == AddResult.ADDED || addResult == AddResult.REPLACED;
|
||||
} finally {
|
||||
unlockAfterWrite();
|
||||
|
||||
Reference in New Issue
Block a user