[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_PendingHTLCInfoDecodeErrorZ.java
index df6ed4c5a25b6f8726911bc8d5adaf19d01652da..6e1003927e4d6d1b048f31600282c738e7a4a962 100644 (file)
@@ -13,6 +13,10 @@ public class Result_PendingHTLCInfoDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_PendingHTLCInfoDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_PendingHTLCInfoDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_PendingHTLCInfoDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_PendingHTLCInfoDecodeErrorZ_is_ok(ptr)) {
                        return new Result_PendingHTLCInfoDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_PendingHTLCInfoDecodeErrorZ extends CommonBase {
         * Creates a new CResult_PendingHTLCInfoDecodeErrorZ in the success state.
         */
        public static Result_PendingHTLCInfoDecodeErrorZ ok(org.ldk.structs.PendingHTLCInfo o) {
-               long ret = bindings.CResult_PendingHTLCInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_PendingHTLCInfoDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_PendingHTLCInfoDecodeErrorZ ret_hu_conv = Result_PendingHTLCInfoDecodeErrorZ.constr_from_ptr(ret);