X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_Bolt11InvoiceFeaturesDecodeErrorZ.java;h=a6641c36198addceeca654d0477a42ee88bb72fd;hb=ffdd56c967087cba7548599934585b8a9a3102e2;hp=c323da94cfba144049dde14f17e5f3b68643612c;hpb=8fa2bcb208a51fa352d04981f1387d8bceced107;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.java b/src/main/java/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.java index c323da94..a6641c36 100644 --- a/src/main/java/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.java @@ -13,6 +13,10 @@ public class Result_Bolt11InvoiceFeaturesDecodeErrorZ extends CommonBase { if (ptr != 0) { bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(ptr); } super.finalize(); } + protected void force_free() { + if (ptr != 0) { bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(ptr); ptr = 0; } + } + static Result_Bolt11InvoiceFeaturesDecodeErrorZ constr_from_ptr(long ptr) { if (bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(ptr)) { return new Result_Bolt11InvoiceFeaturesDecodeErrorZ_OK(null, ptr); @@ -46,7 +50,7 @@ public class Result_Bolt11InvoiceFeaturesDecodeErrorZ extends CommonBase { * Creates a new CResult_Bolt11InvoiceFeaturesDecodeErrorZ in the success state. */ public static Result_Bolt11InvoiceFeaturesDecodeErrorZ ok(org.ldk.structs.Bolt11InvoiceFeatures o) { - long ret = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(o.ptr); Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt11InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);