@@ -92,16 +92,16 @@ native void nativeSetParameter(long handle, int entityId, int propertyId, @Nulla
92
92
final Box <T > box ;
93
93
private final BoxStore store ;
94
94
private final QueryPublisher <T > publisher ;
95
- private final List <EagerRelation > eagerRelations ;
96
- private final QueryFilter <T > filter ;
97
- private final Comparator <T > comparator ;
95
+ @ Nullable private final List <EagerRelation > eagerRelations ;
96
+ @ Nullable private final QueryFilter <T > filter ;
97
+ @ Nullable private final Comparator <T > comparator ;
98
98
private final int queryAttempts ;
99
99
private static final int INITIAL_RETRY_BACK_OFF_IN_MS = 10 ;
100
100
101
101
long handle ;
102
102
103
- Query (Box <T > box , long queryHandle , List <EagerRelation > eagerRelations , QueryFilter <T > filter ,
104
- Comparator <T > comparator ) {
103
+ Query (Box <T > box , long queryHandle , @ Nullable List <EagerRelation > eagerRelations , @ Nullable QueryFilter <T > filter ,
104
+ @ Nullable Comparator <T > comparator ) {
105
105
this .box = box ;
106
106
store = box .getStore ();
107
107
queryAttempts = store .internalQueryAttempts ();
@@ -349,6 +349,7 @@ void resolveEagerRelations(List<T> entities) {
349
349
350
350
/** Note: no null check on eagerRelations! */
351
351
void resolveEagerRelationForNonNullEagerRelations (@ Nonnull T entity , int entityIndex ) {
352
+ //noinspection ConstantConditions No null check.
352
353
for (EagerRelation eagerRelation : eagerRelations ) {
353
354
if (eagerRelation .limit == 0 || entityIndex < eagerRelation .limit ) {
354
355
resolveEagerRelation (entity , eagerRelation );
0 commit comments