Add missing Nullable annotation.

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

Closes: #4256
This commit is contained in:
soumyaPrakashB
2022-12-20 19:07:20 +05:30
committed by Christoph Strobl
parent 26a8fafd03
commit c9dfd60f0f

View File

@@ -34,6 +34,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
@@ -66,7 +67,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);
}