Skip to content

Commit acfc20b

Browse files
soumyaPrakashBchristophstrobl
authored andcommitted
Add missing Nullable annotation.
For one of constructor arguments of the AggregationOptions the Nullable annotation for the cursor argument is missing. Closes: #4256
1 parent ae21d27 commit acfc20b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* @author Christoph Strobl
3434
* @author Mark Paluch
3535
* @author Yadhukrishna S Pai
36+
* @author Soumya Prakash Behera
3637
* @see Aggregation#withOptions(AggregationOptions)
3738
* @see TypedAggregation#withOptions(AggregationOptions)
3839
* @since 1.6
@@ -65,7 +66,7 @@ public class AggregationOptions {
6566
* @param explain whether to get the execution plan for the aggregation instead of the actual results.
6667
* @param cursor can be {@literal null}, used to pass additional options to the aggregation.
6768
*/
68-
public AggregationOptions(boolean allowDiskUse, boolean explain, Document cursor) {
69+
public AggregationOptions(boolean allowDiskUse, boolean explain, @Nullable Document cursor) {
6970
this(allowDiskUse, explain, cursor, null);
7071
}
7172

0 commit comments

Comments
 (0)