@@ -92,16 +92,16 @@ native void nativeSetParameter(long handle, int entityId, int propertyId, @Nulla
9292 final Box <T > box ;
9393 private final BoxStore store ;
9494 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 ;
9898 private final int queryAttempts ;
9999 private static final int INITIAL_RETRY_BACK_OFF_IN_MS = 10 ;
100100
101101 long handle ;
102102
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 ) {
105105 this .box = box ;
106106 store = box .getStore ();
107107 queryAttempts = store .internalQueryAttempts ();
@@ -349,6 +349,7 @@ void resolveEagerRelations(List<T> entities) {
349349
350350 /** Note: no null check on eagerRelations! */
351351 void resolveEagerRelationForNonNullEagerRelations (@ Nonnull T entity , int entityIndex ) {
352+ //noinspection ConstantConditions No null check.
352353 for (EagerRelation eagerRelation : eagerRelations ) {
353354 if (eagerRelation .limit == 0 || entityIndex < eagerRelation .limit ) {
354355 resolveEagerRelation (entity , eagerRelation );
0 commit comments