Browse Source

Add missing Nullable annotation.

For one of constructor arguments of the AggregationOptions the Nullable annotation for the cursor argument is missing.

Closes: #4256
pull/4352/head
soumyaPrakashB 3 years ago committed by Christoph Strobl
parent
commit
acfc20b73b
No known key found for this signature in database
GPG Key ID: 8CC1AB53391458C8
  1. 3
      spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationOptions.java

3
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationOptions.java

@ -33,6 +33,7 @@ import org.springframework.util.Assert; @@ -33,6 +33,7 @@ import org.springframework.util.Assert;
* @author Christoph Strobl
* @author Mark Paluch
* @author Yadhukrishna S Pai
* @author Soumya Prakash Behera
* @see Aggregation#withOptions(AggregationOptions)
* @see TypedAggregation#withOptions(AggregationOptions)
* @since 1.6
@ -65,7 +66,7 @@ public class AggregationOptions { @@ -65,7 +66,7 @@ public class AggregationOptions {
* @param explain whether to get the execution plan for the aggregation instead of the actual results.
* @param cursor can be {@literal null}, used to pass additional options to the aggregation.
*/
public AggregationOptions(boolean allowDiskUse, boolean explain, Document cursor) {
public AggregationOptions(boolean allowDiskUse, boolean explain, @Nullable Document cursor) {
this(allowDiskUse, explain, cursor, null);
}

Loading…
Cancel
Save