X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FOption_MonitorEventZ.java;h=ab23d228135c2b42d7de6da8e971ff8c119063b4;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=032e1f39e5d7f85daf0c65684b025d51d866f55f;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Option_MonitorEventZ.java b/src/main/java/org/ldk/structs/Option_MonitorEventZ.java index 032e1f39..ab23d228 100644 --- a/src/main/java/org/ldk/structs/Option_MonitorEventZ.java +++ b/src/main/java/org/ldk/structs/Option_MonitorEventZ.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; @@ -55,6 +56,7 @@ public class Option_MonitorEventZ extends CommonBase { */ public static Option_MonitorEventZ some(MonitorEvent o) { long ret = bindings.COption_MonitorEventZ_some(o.ptr); + Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } Option_MonitorEventZ ret_hu_conv = Option_MonitorEventZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); @@ -74,6 +76,7 @@ public class Option_MonitorEventZ extends CommonBase { long clone_ptr() { long ret = bindings.COption_MonitorEventZ_clone_ptr(this.ptr); + Reference.reachabilityFence(this); return ret; } @@ -83,6 +86,7 @@ public class Option_MonitorEventZ extends CommonBase { */ public Option_MonitorEventZ clone() { long ret = bindings.COption_MonitorEventZ_clone(this.ptr); + Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } Option_MonitorEventZ ret_hu_conv = Option_MonitorEventZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(this);