From: Matt Corallo Date: Mon, 2 Jan 2023 00:23:23 +0000 (+0000) Subject: [Java] Use util method where possible X-Git-Tag: v0.0.113.0^2~13 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b410ce4d49e0f302a7523df0ef5f3d0801546f68;p=ldk-java [Java] Use util method where possible --- diff --git a/java_strings.py b/java_strings.py index c6905d13..fcf9edd2 100644 --- a/java_strings.py +++ b/java_strings.py @@ -1318,9 +1318,7 @@ import javax.annotation.Nullable; else: if arg.nullable: out_java_struct += "@Nullable " - ty_string = arg.java_hu_ty - if arg.java_fn_ty_arg[0] == "L" and arg.java_fn_ty_arg[len(arg.java_fn_ty_arg) - 1] == ";": - ty_string = arg.java_fn_ty_arg.strip("L;").replace("/", ".") + ty_string = self.fully_qualified_hu_ty_path(arg) out_java_struct += ty_string + " " + arg.arg_name out_java += (");\n") out_c += (") {\n")