Skip to content

Commit b410ce4

Browse files
committed
[Java] Use util method where possible
1 parent 587ee73 commit b410ce4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java_strings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,9 +1318,7 @@ def map_function(self, argument_types, c_call_string, method_name, meth_n, retur
13181318
else:
13191319
if arg.nullable:
13201320
out_java_struct += "@Nullable "
1321-
ty_string = arg.java_hu_ty
1322-
if arg.java_fn_ty_arg[0] == "L" and arg.java_fn_ty_arg[len(arg.java_fn_ty_arg) - 1] == ";":
1323-
ty_string = arg.java_fn_ty_arg.strip("L;").replace("/", ".")
1321+
ty_string = self.fully_qualified_hu_ty_path(arg)
13241322
out_java_struct += ty_string + " " + arg.arg_name
13251323
out_java += (");\n")
13261324
out_c += (") {\n")

0 commit comments

Comments
 (0)