@@ -457,7 +457,7 @@ public P next() {
457
457
* @return the evaluation context including all potential extensions.
458
458
* @since 2.1
459
459
*/
460
- protected EvaluationContext getEvaluationContext (Object rootObject ) {
460
+ protected EvaluationContext getEvaluationContext (@ Nullable Object rootObject ) {
461
461
return evaluationContextProvider .getEvaluationContext (rootObject );
462
462
}
463
463
@@ -469,7 +469,7 @@ protected EvaluationContext getEvaluationContext(Object rootObject) {
469
469
* @return the evaluation context with extensions loaded that satisfy {@link ExpressionDependencies}.
470
470
* @since 2.5
471
471
*/
472
- protected EvaluationContext getEvaluationContext (Object rootObject , ExpressionDependencies dependencies ) {
472
+ protected EvaluationContext getEvaluationContext (@ Nullable Object rootObject , ExpressionDependencies dependencies ) {
473
473
return evaluationContextProvider .getEvaluationContext (rootObject , dependencies );
474
474
}
475
475
@@ -480,7 +480,7 @@ protected EvaluationContext getEvaluationContext(Object rootObject, ExpressionDe
480
480
* @return the evaluation context including all potential extensions.
481
481
* @since 3.3
482
482
*/
483
- protected ValueEvaluationContext getValueEvaluationContext (Object rootObject ) {
483
+ protected ValueEvaluationContext getValueEvaluationContext (@ Nullable Object rootObject ) {
484
484
return ValueEvaluationContext .of (getEnvironment (), getEvaluationContext (rootObject ));
485
485
}
486
486
@@ -492,7 +492,8 @@ protected ValueEvaluationContext getValueEvaluationContext(Object rootObject) {
492
492
* @return the evaluation context with extensions loaded that satisfy {@link ExpressionDependencies}.
493
493
* @since 3.3
494
494
*/
495
- protected ValueEvaluationContext getValueEvaluationContext (Object rootObject , ExpressionDependencies dependencies ) {
495
+ protected ValueEvaluationContext getValueEvaluationContext (@ Nullable Object rootObject ,
496
+ ExpressionDependencies dependencies ) {
496
497
return ValueEvaluationContext .of (getEnvironment (), getEvaluationContext (rootObject , dependencies ));
497
498
}
498
499
0 commit comments