X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_NoneSemanticErrorZ.java;h=902447c36192aa5be6cd39812ddc7c6b139b03a2;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=3d95a8b5ea93db4a1b2dffc8ab06a5547219d96b;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_NoneSemanticErrorZ.java b/src/main/java/org/ldk/structs/Result_NoneSemanticErrorZ.java index 3d95a8b5..902447c3 100644 --- a/src/main/java/org/ldk/structs/Result_NoneSemanticErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_NoneSemanticErrorZ.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; public class Result_NoneSemanticErrorZ extends CommonBase { @@ -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;