[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_InitDecodeErrorZ.java
index 1891b2b46be11a0b214637b2b8dea16d74c753a3..35ddbb3633b4dba0e4332614c47851f04d57f540 100644 (file)
@@ -36,7 +36,7 @@ public class Result_InitDecodeErrorZ extends CommonBase {
                private Result_InitDecodeErrorZ_Err(Object _dummy, long ptr) {
                        super(_dummy, ptr);
                        long err = bindings.CResult_InitDecodeErrorZ_get_err(ptr);
-                       org.ldk.structs.DecodeError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.DecodeError(null, err); }
+                       org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err);
                        if (err_hu_conv != null) { err_hu_conv.ptrs_to.add(this); };
                        this.err = err_hu_conv;
                }
@@ -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,8 +57,8 @@ public class Result_InitDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_InitDecodeErrorZ in the error state.
         */
-       public static Result_InitDecodeErrorZ err(DecodeError e) {
-               long ret = bindings.CResult_InitDecodeErrorZ_err(e == null ? 0 : e.ptr);
+       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);