Skip to content

Commit

Permalink
Add missing Nullable annotations.
Browse files Browse the repository at this point in the history
See #3170
  • Loading branch information
mp911de committed Feb 14, 2025
1 parent 6ab3133 commit 25ab8ff
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public P next() {
* @return the evaluation context including all potential extensions.
* @since 2.1
*/
protected EvaluationContext getEvaluationContext(Object rootObject) {
protected EvaluationContext getEvaluationContext(@Nullable Object rootObject) {
return evaluationContextProvider.getEvaluationContext(rootObject);
}

Expand All @@ -469,7 +469,7 @@ protected EvaluationContext getEvaluationContext(Object rootObject) {
* @return the evaluation context with extensions loaded that satisfy {@link ExpressionDependencies}.
* @since 2.5
*/
protected EvaluationContext getEvaluationContext(Object rootObject, ExpressionDependencies dependencies) {
protected EvaluationContext getEvaluationContext(@Nullable Object rootObject, ExpressionDependencies dependencies) {
return evaluationContextProvider.getEvaluationContext(rootObject, dependencies);
}

Expand All @@ -480,7 +480,7 @@ protected EvaluationContext getEvaluationContext(Object rootObject, ExpressionDe
* @return the evaluation context including all potential extensions.
* @since 3.3
*/
protected ValueEvaluationContext getValueEvaluationContext(Object rootObject) {
protected ValueEvaluationContext getValueEvaluationContext(@Nullable Object rootObject) {
return ValueEvaluationContext.of(getEnvironment(), getEvaluationContext(rootObject));
}

Expand All @@ -492,7 +492,8 @@ protected ValueEvaluationContext getValueEvaluationContext(Object rootObject) {
* @return the evaluation context with extensions loaded that satisfy {@link ExpressionDependencies}.
* @since 3.3
*/
protected ValueEvaluationContext getValueEvaluationContext(Object rootObject, ExpressionDependencies dependencies) {
protected ValueEvaluationContext getValueEvaluationContext(@Nullable Object rootObject,
ExpressionDependencies dependencies) {
return ValueEvaluationContext.of(getEnvironment(), getEvaluationContext(rootObject, dependencies));
}

Expand Down

0 comments on commit 25ab8ff

Please sign in to comment.