17
17
18
18
import java .util .Date ;
19
19
20
+ import javax .annotation .Nullable ;
21
+
20
22
import io .objectbox .Property ;
21
23
import io .objectbox .annotation .apihint .Experimental ;
22
24
import io .objectbox .annotation .apihint .Internal ;
@@ -42,12 +44,12 @@ abstract class AbstractCondition implements QueryCondition {
42
44
public final Object value ;
43
45
protected final Object [] values ;
44
46
45
- public AbstractCondition (Object value ) {
47
+ AbstractCondition (Object value ) {
46
48
this .value = value ;
47
49
this .values = null ;
48
50
}
49
51
50
- public AbstractCondition (Object [] values ) {
52
+ AbstractCondition (Object [] values ) {
51
53
this .value = null ;
52
54
this .values = values ;
53
55
}
@@ -166,7 +168,7 @@ public void applyTo(QueryBuilder queryBuilder, StringOrder stringOrder) {
166
168
}
167
169
}
168
170
169
- private static Object checkValueForType (Property property , Object value ) {
171
+ private static Object checkValueForType (Property property , @ Nullable Object value ) {
170
172
if (value != null && value .getClass ().isArray ()) {
171
173
throw new DbException ("Illegal value: found array, but simple object required" );
172
174
}
@@ -203,7 +205,7 @@ private static Object checkValueForType(Property property, Object value) {
203
205
return value ;
204
206
}
205
207
206
- private static Object [] checkValuesForType (Property property , Operation operation , Object [] values ) {
208
+ private static Object [] checkValuesForType (Property property , Operation operation , @ Nullable Object [] values ) {
207
209
if (values == null ) {
208
210
if (operation == Operation .IS_NULL || operation == Operation .IS_NOT_NULL ) {
209
211
return null ;
0 commit comments