Skip to content

Commit 6d059fc

Browse files
committed
Validated against 4.0 branch
1 parent 2bc9977 commit 6d059fc

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

android-ktx/lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2017, 2018, 2019, 2020, 2024 Couchbase, Inc.
2+
// Copyright (c) 2017, 2018, 2019, 2024 Couchbase, Inc. All rights reserved.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.

android/lib/src/main/java/com/couchbase/lite/Replicator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//
1616
package com.couchbase.lite;
1717

18+
import androidx.annotation.GuardedBy;
1819
import androidx.annotation.NonNull;
1920
import androidx.annotation.Nullable;
2021
import androidx.annotation.VisibleForTesting;
@@ -53,6 +54,7 @@ public Replicator(@NonNull ReplicatorConfiguration config) {
5354
: new AndroidConnectivityObserver(mgr, Replicator.this::getC4Replicator);
5455
}
5556

57+
@GuardedBy("getDbLock()")
5658
@Override
5759
@NonNull
5860
protected C4Replicator createReplicatorForTarget(@NonNull Endpoint target) throws LiteCoreException {

java/lib/src/main/java/com/couchbase/lite/Replicator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//
1616
package com.couchbase.lite;
1717

18+
import androidx.annotation.GuardedBy;
1819
import androidx.annotation.NonNull;
1920
import androidx.annotation.Nullable;
2021
import androidx.annotation.VisibleForTesting;
@@ -34,6 +35,7 @@ public final class Replicator extends AbstractReplicator {
3435
@VisibleForTesting
3536
Replicator(@Nullable NetworkConnectivityManager ignore, @NonNull ReplicatorConfiguration config) { super(config); }
3637

38+
@GuardedBy("getDbLock()")
3739
@NonNull
3840
@Override
3941
protected C4Replicator createReplicatorForTarget(@NonNull Endpoint target) throws LiteCoreException {

0 commit comments

Comments
 (0)