Skip to content

Commit 78d3164

Browse files
committed
Remove outdated javadoc references to SpEL lambda functions
Issue: SPR-16930 (cherry picked from commit 6df7ba2)
1 parent afcc430 commit 78d3164

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
@@ -37,13 +37,10 @@
3737

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

0 commit comments

Comments
 (0)