Skip to content

Commit 6df7ba2

Browse files
committed
Remove outdated javadoc references to SpEL lambda functions
Issue: SPR-16930
1 parent 1d6f717 commit 6df7ba2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

spring-expression/src/main/java/org/springframework/expression/spel/ast/FunctionReference.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@
3636

3737
/**
3838
* A function reference is of the form "#someFunction(a,b,c)". Functions may be defined
39-
* in the context prior to the expression being evaluated or within the expression itself
40-
* using a lambda function definition. For example: Lambda function definition in an
41-
* expression: "(#max = {|x,y|$x>$y?$x:$y};max(2,3))" Calling context defined function:
42-
* "#isEven(37)". Functions may also be static java methods, registered in the context
43-
* prior to invocation of the expression.
39+
* in the context prior to the expression being evaluated. Functions may also be static
40+
* Java methods, registered in the context prior to invocation of the expression.
4441
*
45-
* <p>Functions are very simplistic, the arguments are not part of the definition
42+
* <p>Functions are very simplistic. The arguments are not part of the definition
4643
* (right now), so the names must be unique.
4744
*
4845
* @author Andy Clement
@@ -71,7 +68,7 @@ public TypedValue getValueInternal(ExpressionState state) throws EvaluationExcep
7168
throw new SpelEvaluationException(getStartPosition(), SpelMessage.FUNCTION_NOT_DEFINED, this.name);
7269
}
7370
if (!(value.getValue() instanceof Method)) {
74-
// Two possibilities: a lambda function or a Java static method registered as a function
71+
// Possibly a static Java method registered as a function
7572
throw new SpelEvaluationException(
7673
SpelMessage.FUNCTION_REFERENCE_CANNOT_BE_INVOKED, this.name, value.getClass());
7774
}

0 commit comments

Comments
 (0)