X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FOption_CVec_NetAddressZZ.java;h=15a5fe325ab876f4164a09202828e866147cf4b9;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=a3e77a308d68b6d43e38c2bc99df4ce87bc95ea1;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java b/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java index a3e77a30..15a5fe32 100644 --- a/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java +++ b/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java @@ -4,6 +4,7 @@ import org.ldk.impl.bindings; import org.ldk.enums.*; import org.ldk.util.*; import java.util.Arrays; +import java.lang.ref.Reference; import javax.annotation.Nullable; @@ -60,6 +61,7 @@ public class Option_CVec_NetAddressZZ extends CommonBase { */ public static Option_CVec_NetAddressZZ some(NetAddress[] o) { long ret = bindings.COption_CVec_NetAddressZZ_some(o != null ? Arrays.stream(o).mapToLong(o_conv_12 -> o_conv_12.ptr).toArray() : null); + Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } Option_CVec_NetAddressZZ ret_hu_conv = Option_CVec_NetAddressZZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); @@ -79,6 +81,7 @@ public class Option_CVec_NetAddressZZ extends CommonBase { long clone_ptr() { long ret = bindings.COption_CVec_NetAddressZZ_clone_ptr(this.ptr); + Reference.reachabilityFence(this); return ret; } @@ -88,6 +91,7 @@ public class Option_CVec_NetAddressZZ extends CommonBase { */ public Option_CVec_NetAddressZZ clone() { long ret = bindings.COption_CVec_NetAddressZZ_clone(this.ptr); + Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } Option_CVec_NetAddressZZ ret_hu_conv = Option_CVec_NetAddressZZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(this);