Polishing and removal of "this." for method invocations
This commit is contained in:
@@ -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