[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_ChannelTransactionParametersDecodeErrorZ.java
index 6a293d18cf9f707e64e1b22fb90c45fdcf9b908d..8e1b0a5f289c855402dc55efcc6cb2d2211a5cf2 100644 (file)
@@ -13,6 +13,10 @@ public class Result_ChannelTransactionParametersDecodeErrorZ extends CommonBase
                if (ptr != 0) { bindings.CResult_ChannelTransactionParametersDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_ChannelTransactionParametersDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_ChannelTransactionParametersDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(ptr)) {
                        return new Result_ChannelTransactionParametersDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_ChannelTransactionParametersDecodeErrorZ extends CommonBase
         * Creates a new CResult_ChannelTransactionParametersDecodeErrorZ in the success state.
         */
        public static Result_ChannelTransactionParametersDecodeErrorZ ok(org.ldk.structs.ChannelTransactionParameters o) {
-               long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);