Merge branch 'main' into bug5067

This commit is contained in:
Axel Uhl
2024-09-11 00:43:59 +02:00
301 changed files with 5087 additions and 2149 deletions
@@ -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();