From 634112c391b5143a5b9fb479f76033f92177fdf0 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 18 Feb 2025 14:13:12 +0100 Subject: [PATCH] Polishing. Refine wording around Environment and EvaluationContext presence. See #3170 --- .../data/expression/ValueEvaluationContext.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/springframework/data/expression/ValueEvaluationContext.java b/src/main/java/org/springframework/data/expression/ValueEvaluationContext.java index feb26f14c0..9b6eea20f5 100644 --- a/src/main/java/org/springframework/data/expression/ValueEvaluationContext.java +++ b/src/main/java/org/springframework/data/expression/ValueEvaluationContext.java @@ -19,8 +19,8 @@ import org.springframework.expression.EvaluationContext; /** - * Expressions are executed in an evaluation context. It is in this context that references are resolved when - * encountered during expression evaluation. + * Expressions are executed using an evaluation context. This context is used to resolve references during (SpEL, + * property placeholder) expression evaluation. * * @author Christoph Strobl * @author Mark Paluch @@ -31,8 +31,8 @@ public interface ValueEvaluationContext { /** * Returns a new {@link ValueEvaluationContext}. * - * @param environment - * @param evaluationContext + * @param environment must not be {@literal null}. + * @param evaluationContext must not be {@literal null}. * @return a new {@link ValueEvaluationContext} for the given environment and evaluation context. */ static ValueEvaluationContext of(Environment environment, EvaluationContext evaluationContext) { @@ -40,14 +40,14 @@ static ValueEvaluationContext of(Environment environment, EvaluationContext eval } /** - * Returns the {@link Environment} if provided. + * Returns the {@link Environment}. * * @return the {@link Environment}. */ Environment getEnvironment(); /** - * Returns the {@link EvaluationContext} if provided. + * Returns the {@link EvaluationContext}. * * @return the {@link EvaluationContext}. */