Construct a method to clone returning a pointerand not a human object
[ldk-java] / java_strings.py
index 327a1f3e60903550f59a7166bafcd58a2a47d169..3827005a2707dbd00a7eb0ca1ecdeb339f13df0d 100644 (file)
@@ -1201,6 +1201,8 @@ import javax.annotation.Nullable;
                     out_java_struct += "\tpublic static " + return_type_info.java_hu_ty + " with_default("
                 else:
                     out_java_struct += "\tpublic static " + return_type_info.java_hu_ty + " " + meth_n + "("
+            elif meth_n == "clone_ptr":
+                out_java_struct += ("\t" + return_type_info.java_hu_ty + " " + meth_n + "(")
             else:
                 out_java_struct += ("\tpublic " + return_type_info.java_hu_ty + " " + meth_n + "(")
             for idx, arg in enumerate(argument_types):