Polishing

This commit is contained in:
Juergen Hoeller
2023-05-23 20:01:28 +02:00
parent 876e417eb4
commit 5441796675
7 changed files with 34 additions and 36 deletions

View File

@@ -159,7 +159,7 @@ public class FunctionReference extends SpelNodeImpl {
* @param methodHandle the method to invoke
* @return the return value of the invoked Java method
* @throws EvaluationException if there is any problem invoking the method
* @since 6.1.0
* @since 6.1
*/
private TypedValue executeFunctionBoundMethodHandle(ExpressionState state, MethodHandle methodHandle) throws EvaluationException {
Object[] functionArgs = getArguments(state);

View File

@@ -343,10 +343,11 @@ public abstract class ReflectionHelper {
* ({@code null} if not varargs)
* @return {@code true} if some kind of conversion occurred on an argument
* @throws EvaluationException if a problem occurs during conversion
* @since 6.1.0
* @since 6.1
*/
public static boolean convertAllMethodHandleArguments(TypeConverter converter, Object[] arguments,
MethodHandle methodHandle, @Nullable Integer varargsPosition) throws EvaluationException {
boolean conversionOccurred = false;
final MethodType methodHandleArgumentTypes = methodHandle.type();
if (varargsPosition == null) {