Update auto-generated Java bindings (all functionally equivalent)
[ldk-java] / src / main / java / org / ldk / structs / Result_NoneSemanticErrorZ.java
index 3d95a8b5ea93db4a1b2dffc8ab06a5547219d96b..146bef93be64dd2172ff0519caf33df2a5ef64eb 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;
 
 public class Result_NoneSemanticErrorZ extends CommonBase {
@@ -29,7 +30,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
                public final SemanticError err;
                private Result_NoneSemanticErrorZ_Err(Object _dummy, long ptr) {
                        super(_dummy, ptr);
-                       this.err = bindings.LDKCResult_NoneSemanticErrorZ_get_err(ptr);
+                       this.err = bindings.CResult_NoneSemanticErrorZ_get_err(ptr);
                }
        }
 
@@ -48,6 +49,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
         */
        public static Result_NoneSemanticErrorZ err(org.ldk.enums.SemanticError e) {
                long ret = bindings.CResult_NoneSemanticErrorZ_err(e);
+               Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
@@ -58,11 +60,13 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
         */
        public boolean is_ok() {
                boolean ret = bindings.CResult_NoneSemanticErrorZ_is_ok(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
        long clone_ptr() {
                long ret = bindings.CResult_NoneSemanticErrorZ_clone_ptr(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -72,6 +76,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
         */
        public Result_NoneSemanticErrorZ clone() {
                long ret = bindings.CResult_NoneSemanticErrorZ_clone(this.ptr);
+               Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;