Skip to content

Commit 634112c

Browse files
committed
Polishing.
Refine wording around Environment and EvaluationContext presence. See #3170
1 parent 6e97f3b commit 634112c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/springframework/data/expression/ValueEvaluationContext.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import org.springframework.expression.EvaluationContext;
2020

2121
/**
22-
* Expressions are executed in an evaluation context. It is in this context that references are resolved when
23-
* encountered during expression evaluation.
22+
* Expressions are executed using an evaluation context. This context is used to resolve references during (SpEL,
23+
* property placeholder) expression evaluation.
2424
*
2525
* @author Christoph Strobl
2626
* @author Mark Paluch
@@ -31,23 +31,23 @@ public interface ValueEvaluationContext {
3131
/**
3232
* Returns a new {@link ValueEvaluationContext}.
3333
*
34-
* @param environment
35-
* @param evaluationContext
34+
* @param environment must not be {@literal null}.
35+
* @param evaluationContext must not be {@literal null}.
3636
* @return a new {@link ValueEvaluationContext} for the given environment and evaluation context.
3737
*/
3838
static ValueEvaluationContext of(Environment environment, EvaluationContext evaluationContext) {
3939
return new DefaultValueEvaluationContext(environment, evaluationContext);
4040
}
4141

4242
/**
43-
* Returns the {@link Environment} if provided.
43+
* Returns the {@link Environment}.
4444
*
4545
* @return the {@link Environment}.
4646
*/
4747
Environment getEnvironment();
4848

4949
/**
50-
* Returns the {@link EvaluationContext} if provided.
50+
* Returns the {@link EvaluationContext}.
5151
*
5252
* @return the {@link EvaluationContext}.
5353
*/

0 commit comments

Comments
 (0)