Update auto-updated Java files
[ldk-java] / src / main / java / org / ldk / structs / FundingLocked.java
index 4aa45f9874808bc8aec25ce1f98a60ec3b6cc014..faebaa23c846726b88ac90819d38f977e85c1052 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;
 
 
@@ -24,6 +25,7 @@ public class FundingLocked extends CommonBase {
         */
        public byte[] get_channel_id() {
                byte[] ret = bindings.FundingLocked_get_channel_id(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -32,6 +34,8 @@ public class FundingLocked extends CommonBase {
         */
        public void set_channel_id(byte[] val) {
                bindings.FundingLocked_set_channel_id(this.ptr, InternalUtils.check_arr_len(val, 32));
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(val);
        }
 
        /**
@@ -39,6 +43,7 @@ public class FundingLocked extends CommonBase {
         */
        public byte[] get_next_per_commitment_point() {
                byte[] ret = bindings.FundingLocked_get_next_per_commitment_point(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -47,6 +52,8 @@ public class FundingLocked extends CommonBase {
         */
        public void set_next_per_commitment_point(byte[] val) {
                bindings.FundingLocked_set_next_per_commitment_point(this.ptr, InternalUtils.check_arr_len(val, 33));
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(val);
        }
 
        /**
@@ -54,6 +61,8 @@ public class FundingLocked extends CommonBase {
         */
        public static FundingLocked of(byte[] channel_id_arg, byte[] next_per_commitment_point_arg) {
                long ret = bindings.FundingLocked_new(InternalUtils.check_arr_len(channel_id_arg, 32), InternalUtils.check_arr_len(next_per_commitment_point_arg, 33));
+               Reference.reachabilityFence(channel_id_arg);
+               Reference.reachabilityFence(next_per_commitment_point_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
                FundingLocked ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new FundingLocked(null, ret); }
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
@@ -62,6 +71,7 @@ public class FundingLocked extends CommonBase {
 
        long clone_ptr() {
                long ret = bindings.FundingLocked_clone_ptr(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -70,6 +80,7 @@ public class FundingLocked extends CommonBase {
         */
        public FundingLocked clone() {
                long ret = bindings.FundingLocked_clone(this.ptr);
+               Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                FundingLocked ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new FundingLocked(null, ret); }
                ret_hu_conv.ptrs_to.add(this);
@@ -81,6 +92,7 @@ public class FundingLocked extends CommonBase {
         */
        public byte[] write() {
                byte[] ret = bindings.FundingLocked_write(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -89,6 +101,7 @@ public class FundingLocked extends CommonBase {
         */
        public static Result_FundingLockedDecodeErrorZ read(byte[] ser) {
                long ret = bindings.FundingLocked_read(ser);
+               Reference.reachabilityFence(ser);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_FundingLockedDecodeErrorZ ret_hu_conv = Result_FundingLockedDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;