]> git.bitcoin.ninja Git - ldk-java/blobdiff - src/main/java/org/ldk/structs/Result_CVec_UtxoZNoneZ.java
[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_CVec_UtxoZNoneZ.java
index 74a8ef417ef0ae1e8f774e40a38653ea3f5311f4..5d655e536b48b01722d7c4583a245efebf9656d9 100644 (file)
@@ -13,6 +13,10 @@ public class Result_CVec_UtxoZNoneZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_CVec_UtxoZNoneZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_CVec_UtxoZNoneZ_free(ptr); ptr = 0; }
+       }
+
        static Result_CVec_UtxoZNoneZ constr_from_ptr(long ptr) {
                if (bindings.CResult_CVec_UtxoZNoneZ_is_ok(ptr)) {
                        return new Result_CVec_UtxoZNoneZ_OK(null, ptr);
@@ -47,7 +51,7 @@ public class Result_CVec_UtxoZNoneZ extends CommonBase {
         * Creates a new CResult_CVec_UtxoZNoneZ in the success state.
         */
        public static Result_CVec_UtxoZNoneZ ok(Utxo[] o) {
-               long ret = bindings.CResult_CVec_UtxoZNoneZ_ok(o != null ? Arrays.stream(o).mapToLong(o_conv_6 -> o_conv_6 == null ? 0 : o_conv_6.ptr).toArray() : null);
+               long ret = bindings.CResult_CVec_UtxoZNoneZ_ok(o != null ? Arrays.stream(o).mapToLong(o_conv_6 -> o_conv_6.ptr).toArray() : null);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_CVec_UtxoZNoneZ ret_hu_conv = Result_CVec_UtxoZNoneZ.constr_from_ptr(ret);