Skip to content

Commit c9dfd60

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 26a8faf commit c9dfd60

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
@@ -34,6 +34,7 @@
3434
* @author Christoph Strobl
3535
* @author Mark Paluch
3636
* @author Yadhukrishna S Pai
37+
* @author Soumya Prakash Behera
3738
* @see Aggregation#withOptions(AggregationOptions)
3839
* @see TypedAggregation#withOptions(AggregationOptions)
3940
* @since 1.6
@@ -66,7 +67,7 @@ public class AggregationOptions {
6667
* @param explain whether to get the execution plan for the aggregation instead of the actual results.
6768
* @param cursor can be {@literal null}, used to pass additional options to the aggregation.
6869
*/
69-
public AggregationOptions(boolean allowDiskUse, boolean explain, Document cursor) {
70+
public AggregationOptions(boolean allowDiskUse, boolean explain, @Nullable Document cursor) {
7071
this(allowDiskUse, explain, cursor, null);
7172
}
7273

0 commit comments

Comments
 (0)