Skip to content

Commit ff55167

Browse files
Ignore nullability warning on public API, annotation can not enforce.
1 parent 0424f7e commit ff55167

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public BoxStoreBuilder baseDirectory(File baseDirectory) {
174174
* Alternatively, you can also use {@link #baseDirectory} or {@link #directory(File)} instead.
175175
*/
176176
public BoxStoreBuilder androidContext(Object context) {
177+
//noinspection ConstantConditions Annotation does not enforce non-null.
177178
if (context == null) {
178179
throw new NullPointerException("Context may not be null");
179180
}
@@ -211,6 +212,7 @@ public BoxStoreBuilder androidReLinker(Object reLinkerInstance) {
211212
if (context == null) {
212213
throw new IllegalArgumentException("Set a Context using androidContext(context) first");
213214
}
215+
//noinspection ConstantConditions Annotation does not enforce non-null.
214216
if (reLinkerInstance == null) {
215217
throw new NullPointerException("ReLinkerInstance may not be null");
216218
}

0 commit comments

Comments
 (0)