We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd10bd1 commit 2c49751Copy full SHA for 2c49751
src/translators/java.py
@@ -408,7 +408,11 @@ def visit_call_argument(self, node):
408
def visit_bottom_constant(self, node):
409
return self.get_ident() + "{}{}null{}{}".format(
410
'(' if self._parent_is_func_ref() else '',
411
- '(' + self.get_type_name(node.t) + ') ' if node.t else '',
+ (
412
+ '(' + self.get_type_name(node.t) + ') '
413
+ if node.t and node.t != tp.Nothing
414
+ else ''
415
+ ),
416
')' if self._parent_is_func_ref() else '',
417
';' if self._parent_is_block() else ''
418
)
0 commit comments