[Java] Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Option_MonitorEventZ.java
index 032e1f39e5d7f85daf0c65684b025d51d866f55f..6d0f9587c88835ab39033f043932e66db17fddfc 100644 (file)
@@ -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;
 
 
@@ -33,11 +34,11 @@ public class Option_MonitorEventZ extends CommonBase {
         * When we're in this state, this COption_MonitorEventZ contains a crate::lightning::chain::channelmonitor::MonitorEvent
         */
        public final static class Some extends Option_MonitorEventZ {
-               public final MonitorEvent some;
+               public final org.ldk.structs.MonitorEvent some;
                private Some(long ptr, bindings.LDKCOption_MonitorEventZ.Some obj) {
                        super(null, ptr);
                        long some = obj.some;
-                       MonitorEvent some_hu_conv = MonitorEvent.constr_from_ptr(some);
+                       org.ldk.structs.MonitorEvent some_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(some);
                        some_hu_conv.ptrs_to.add(this);
                        this.some = some_hu_conv;
                }
@@ -55,8 +56,9 @@ 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);
+               org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
@@ -67,13 +69,14 @@ public class Option_MonitorEventZ extends CommonBase {
        public static Option_MonitorEventZ none() {
                long ret = bindings.COption_MonitorEventZ_none();
                if (ret >= 0 && ret <= 4096) { return null; }
-               Option_MonitorEventZ ret_hu_conv = Option_MonitorEventZ.constr_from_ptr(ret);
+               org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
 
        long clone_ptr() {
                long ret = bindings.COption_MonitorEventZ_clone_ptr(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -83,8 +86,9 @@ 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);
+               org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }