]> git.bitcoin.ninja Git - ldk-java/commitdiff
[Java] Use util method where possible
authorMatt Corallo <git@bluematt.me>
Mon, 2 Jan 2023 00:23:23 +0000 (00:23 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 11 Jan 2023 21:14:44 +0000 (21:14 +0000)
java_strings.py

index c6905d1359f5f2f03e31e1c58b85b9f319d79c36..fcf9edd29e43cd331fd62c6217e5f5ead03542ee 100644 (file)
@@ -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")