Skip to content

Commit 9d3692e

Browse files
ToOne: add missing nullable annotation to resolve warnings.
1 parent cfff985 commit 9d3692e

File tree

1 file changed

+1
-1
lines changed
  • objectbox-java/src/main/java/io/objectbox/relation

1 file changed

+1
-1
lines changed

objectbox-java/src/main/java/io/objectbox/relation/ToOne.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public TARGET getTarget(long targetId) {
106106
return targetNew;
107107
}
108108

109-
private void ensureBoxes(TARGET target) {
109+
private void ensureBoxes(@Nullable TARGET target) {
110110
// Only check the property set last
111111
if (targetBox == null) {
112112
Field boxStoreField = ReflectionCache.getInstance().getField(entity.getClass(), "__boxStore");

0 commit comments

Comments
 (0)