Skip to content

Commit 25ab8ff

Browse files
committed
Add missing Nullable annotations.
See #3170
1 parent 6ab3133 commit 25ab8ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/org/springframework/data/mapping/model/BasicPersistentEntity.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ public P next() {
457457
* @return the evaluation context including all potential extensions.
458458
* @since 2.1
459459
*/
460-
protected EvaluationContext getEvaluationContext(Object rootObject) {
460+
protected EvaluationContext getEvaluationContext(@Nullable Object rootObject) {
461461
return evaluationContextProvider.getEvaluationContext(rootObject);
462462
}
463463

@@ -469,7 +469,7 @@ protected EvaluationContext getEvaluationContext(Object rootObject) {
469469
* @return the evaluation context with extensions loaded that satisfy {@link ExpressionDependencies}.
470470
* @since 2.5
471471
*/
472-
protected EvaluationContext getEvaluationContext(Object rootObject, ExpressionDependencies dependencies) {
472+
protected EvaluationContext getEvaluationContext(@Nullable Object rootObject, ExpressionDependencies dependencies) {
473473
return evaluationContextProvider.getEvaluationContext(rootObject, dependencies);
474474
}
475475

@@ -480,7 +480,7 @@ protected EvaluationContext getEvaluationContext(Object rootObject, ExpressionDe
480480
* @return the evaluation context including all potential extensions.
481481
* @since 3.3
482482
*/
483-
protected ValueEvaluationContext getValueEvaluationContext(Object rootObject) {
483+
protected ValueEvaluationContext getValueEvaluationContext(@Nullable Object rootObject) {
484484
return ValueEvaluationContext.of(getEnvironment(), getEvaluationContext(rootObject));
485485
}
486486

@@ -492,7 +492,8 @@ protected ValueEvaluationContext getValueEvaluationContext(Object rootObject) {
492492
* @return the evaluation context with extensions loaded that satisfy {@link ExpressionDependencies}.
493493
* @since 3.3
494494
*/
495-
protected ValueEvaluationContext getValueEvaluationContext(Object rootObject, ExpressionDependencies dependencies) {
495+
protected ValueEvaluationContext getValueEvaluationContext(@Nullable Object rootObject,
496+
ExpressionDependencies dependencies) {
496497
return ValueEvaluationContext.of(getEnvironment(), getEvaluationContext(rootObject, dependencies));
497498
}
498499

0 commit comments

Comments
 (0)