mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing and removal of "this." for method invocations
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ class VariableAndFunctionTests extends AbstractExpressionTests {
|
||||
|
||||
@Test
|
||||
void functionMethodMustBeStatic() throws Exception {
|
||||
context.registerFunction("nonStatic", this.getClass().getMethod("nonStatic"));
|
||||
context.registerFunction("nonStatic", getClass().getMethod("nonStatic"));
|
||||
SpelExpression expression = parser.parseRaw("#nonStatic()");
|
||||
assertThatExceptionOfType(SpelEvaluationException.class)
|
||||
.isThrownBy(() -> expression.getValue(context))
|
||||
|
||||
Reference in New Issue
Block a user