[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_Bolt11InvoiceBolt11SemanticErrorZ.java
index ab490892cbfff7c3e247dc8b55ab3b2942266671..8e58721d0fb111316d90be95f8745f78390cfa75 100644 (file)
@@ -13,6 +13,10 @@ public class Result_Bolt11InvoiceBolt11SemanticErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_Bolt11InvoiceBolt11SemanticErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(ptr)) {
                        return new Result_Bolt11InvoiceBolt11SemanticErrorZ_OK(null, ptr);
@@ -43,7 +47,7 @@ public class Result_Bolt11InvoiceBolt11SemanticErrorZ extends CommonBase {
         * Creates a new CResult_Bolt11InvoiceBolt11SemanticErrorZ in the success state.
         */
        public static Result_Bolt11InvoiceBolt11SemanticErrorZ ok(org.ldk.structs.Bolt11Invoice o) {
-               long ret = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_Bolt11InvoiceBolt11SemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceBolt11SemanticErrorZ.constr_from_ptr(ret);