[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_TxInitRbfDecodeErrorZ.java
index 69c17d966ee1f518b23f744d0bd8bf38bc7f3de6..7884c6260ab4c4d4b01b5abfe8fc41ee2de8cb74 100644 (file)
@@ -13,6 +13,10 @@ public class Result_TxInitRbfDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_TxInitRbfDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_TxInitRbfDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_TxInitRbfDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_TxInitRbfDecodeErrorZ_is_ok(ptr)) {
                        return new Result_TxInitRbfDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_TxInitRbfDecodeErrorZ extends CommonBase {
         * Creates a new CResult_TxInitRbfDecodeErrorZ in the success state.
         */
        public static Result_TxInitRbfDecodeErrorZ ok(org.ldk.structs.TxInitRbf o) {
-               long ret = bindings.CResult_TxInitRbfDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_TxInitRbfDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_TxInitRbfDecodeErrorZ ret_hu_conv = Result_TxInitRbfDecodeErrorZ.constr_from_ptr(ret);