Clone objects being returned from trait methods before return from Java
[ldk-java] / ts / structs / Result_UnsignedChannelUpdateDecodeErrorZ.ts
index a77733fd80521f2bab631d281a86b59f57152174..979f6b492a8a38495d673d9d4c16919d62502c66 100644 (file)
@@ -37,21 +37,19 @@ public class Result_UnsignedChannelUpdateDecodeErrorZ extends CommonBase {
                }
        }
 
-       public static Result_UnsignedChannelUpdateDecodeErrorZ constructor__ok(UnsignedChannelUpdate o) {
+       public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_ok(UnsignedChannelUpdate o) {
                number ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
                Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(o);
                return ret_hu_conv;
        }
 
-       public static Result_UnsignedChannelUpdateDecodeErrorZ constructor__err(DecodeError e) {
+       public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_err(DecodeError e) {
                number ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
                Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(e);
                return ret_hu_conv;
        }
 
-       public Result_UnsignedChannelUpdateDecodeErrorZ _clone() {
+       public Result_UnsignedChannelUpdateDecodeErrorZ clone() {
                number ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_clone(this.ptr);
                Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;