mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Remove unnecessary invocations of toString()
Closes gh-36709
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
(cherry picked from commit bfb88cfc1c)
This commit is contained in:
committed by
Sam Brannen
parent
626907bbfd
commit
dc032c1e33
+2
-2
@@ -315,7 +315,7 @@ class VariableAndFunctionTests extends AbstractExpressionTests {
|
||||
// Since ArrayHolder is an "instanceof Object" and Object is the varargs component type,
|
||||
// we expect the ArrayHolder not to be converted to an array but rather to be passed
|
||||
// "as is" as a single argument to the varargs method.
|
||||
evaluate("#varargsObjectFunction(#arrayHolder)", "[" + arrayHolder.toString() + "]");
|
||||
evaluate("#varargsObjectFunction(#arrayHolder)", "[" + arrayHolder + "]");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -328,7 +328,7 @@ class VariableAndFunctionTests extends AbstractExpressionTests {
|
||||
// Since ArrayHolder is an "instanceof Object" and Object is the varargs component type,
|
||||
// we expect the ArrayHolder not to be converted to an array but rather to be passed
|
||||
// "as is" as a single argument to the varargs method.
|
||||
evaluate("#varargsObjectFunctionHandle(#arrayHolder)", "[" + arrayHolder.toString() + "]");
|
||||
evaluate("#varargsObjectFunctionHandle(#arrayHolder)", "[" + arrayHolder + "]");
|
||||
}
|
||||
|
||||
private void evaluate(String expression, Object expectedValue) {
|
||||
|
||||
Reference in New Issue
Block a user