[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_InFlightHtlcsDecodeErrorZ.java
index 024cc29f21af06dc822c9e9d1338d43dea80e56a..ef6b85cb949b6db582332837fc4bfa7323b808aa 100644 (file)
@@ -13,6 +13,10 @@ public class Result_InFlightHtlcsDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_InFlightHtlcsDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_InFlightHtlcsDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_InFlightHtlcsDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_InFlightHtlcsDecodeErrorZ_is_ok(ptr)) {
                        return new Result_InFlightHtlcsDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_InFlightHtlcsDecodeErrorZ extends CommonBase {
         * Creates a new CResult_InFlightHtlcsDecodeErrorZ in the success state.
         */
        public static Result_InFlightHtlcsDecodeErrorZ ok(org.ldk.structs.InFlightHtlcs o) {
-               long ret = bindings.CResult_InFlightHtlcsDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_InFlightHtlcsDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_InFlightHtlcsDecodeErrorZ ret_hu_conv = Result_InFlightHtlcsDecodeErrorZ.constr_from_ptr(ret);