From bb01e78123f2d61287c5d72add78e897585a9f54 Mon Sep 17 00:00:00 2001 From: Daniel Holle Date: Tue, 27 Jun 2023 09:51:07 +0200 Subject: [PATCH] Undo that change --- .../target/generate/StatementToTargetExpression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java b/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java index 62e68843..a5c4d644 100644 --- a/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java +++ b/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java @@ -206,7 +206,7 @@ public class StatementToTargetExpression implements StatementVisitor { var returnType = isFunNType ? TargetType.Object : converter.convert(methodCall.signature.get(methodCall.signature.size() - 1)); var receiverName = new JavaClassName(converter.convert(methodCall.receiver.getType()).name()); var argList = methodCall.signature.stream().map(converter::convert).toList(); - // argList = argList.subList(0, argList.size() - 1); + argList = argList.subList(0, argList.size() - 1); Method foundMethod = null; if (methodCall.receiver instanceof ExpressionReceiver expressionReceiver && expressionReceiver.expr instanceof This) {