Skip to content

Commit 2235b16

Browse files
greenrobot-teamgreenrobot
authored andcommitted
Spotbugs: add missing nullable annotation.
Regression from e108fd0 BoxStore: make setSyncClient() package private
1 parent 4cf5af1 commit 2235b16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

objectbox-java/src/main/java/io/objectbox/InternalAccess.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package io.objectbox;
1818

19+
import javax.annotation.Nullable;
20+
1921
import io.objectbox.annotation.apihint.Internal;
2022
import io.objectbox.sync.SyncClient;
2123

@@ -37,7 +39,7 @@ public static long getHandle(Transaction tx) {
3739
return tx.internalHandle();
3840
}
3941

40-
public static void setSyncClient(BoxStore boxStore, SyncClient syncClient) {
42+
public static void setSyncClient(BoxStore boxStore, @Nullable SyncClient syncClient) {
4143
boxStore.setSyncClient(syncClient);
4244
}
4345

0 commit comments

Comments
 (0)