Skip to content

Commit fd10bd1

Browse files
committed
Java translator: dump types of lambda's parameters
1 parent aae2aea commit fd10bd1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/translators/java.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,15 +740,12 @@ def visit_lambda(self, node):
740740
body = "{{{body};}}{semicolon}".format(
741741
body=body_res,
742742
semicolon=";" if self._parent_is_block() else ""
743-
#ident=self.get_ident(old_ident=old_ident)
744743
)
745744
else:
746745
body = body_res
747746

748-
params = list(map(lambda x: x.split()[-1], param_res))
749747
res = "({params}) -> {body}".format(
750-
#ident=self.get_ident(old_ident=old_ident),
751-
params=", ".join(params),
748+
params=", ".join(param_res),
752749
body=body
753750
)
754751

0 commit comments

Comments
 (0)