[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_InitDecodeErrorZ.java
index d698f7496422430693c4245d6d76cef19eee45af..35ddbb3633b4dba0e4332614c47851f04d57f540 100644 (file)
@@ -45,7 +45,7 @@ public class Result_InitDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_InitDecodeErrorZ in the success state.
         */
-       public static Result_InitDecodeErrorZ ok(Init o) {
+       public static Result_InitDecodeErrorZ ok(org.ldk.structs.Init o) {
                long ret = bindings.CResult_InitDecodeErrorZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -57,11 +57,12 @@ public class Result_InitDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_InitDecodeErrorZ in the error state.
         */
-       public static Result_InitDecodeErrorZ err(DecodeError e) {
+       public static Result_InitDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_InitDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }