mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
Remove unnecessary invocations of toString()
Closes gh-36709 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Sam Brannen
parent
c4dfb24116
commit
bfb88cfc1c
+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