1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
25
25
import org .springframework .lang .Nullable ;
26
26
27
27
/**
28
- * Cache specific evaluation context that adds a method parameters as SpEL
29
- * variables, in a lazy manner. The lazy nature eliminates unneeded
30
- * parsing of classes byte code for parameter discovery.
28
+ * Cache- specific evaluation context that adds method parameters as SpEL
29
+ * variables, in a lazy manner. The lazy nature avoids unnecessary
30
+ * parsing of a class's byte code for parameter discovery.
31
31
*
32
- * <p>Also define a set of "unavailable variables" (i.e. variables that should
33
- * lead to an exception right the way when they are accessed). This can be useful
32
+ * <p>Also defines a set of "unavailable variables" (i.e. variables that should
33
+ * lead to an exception as soon as they are accessed). This can be useful
34
34
* to verify a condition does not match even when not all potential variables
35
35
* are present.
36
36
*
@@ -55,10 +55,10 @@ class CacheEvaluationContext extends MethodBasedEvaluationContext {
55
55
56
56
57
57
/**
58
- * Add the specified variable name as unavailable for that context.
59
- * Any expression trying to access this variable should lead to an exception.
60
- * <p>This permits the validation of expressions that could potentially a
61
- * variable even when such variable isn't available yet. Any expression
58
+ * Add the specified variable name as unavailable for this context.
59
+ * <p> Any expression trying to access this variable should lead to an exception.
60
+ * <p>This permits the validation of expressions that could potentially access
61
+ * a variable even when such a variable isn't available yet. Any expression
62
62
* trying to use that variable should therefore fail to evaluate.
63
63
*/
64
64
public void addUnavailableVariable (String name ) {
0 commit comments