[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / Pong.java
index 9e32c65a1d6cb77e2d5a3b24ee120a3b027668a8..de159f2ba307dbf8c30173cc4d3a6242d702a57f 100644 (file)
@@ -47,8 +47,8 @@ public class Pong extends CommonBase {
                long ret = bindings.Pong_new(byteslen_arg);
                Reference.reachabilityFence(byteslen_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
-               Pong ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Pong(null, ret); }
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               org.ldk.structs.Pong ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Pong(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
                return ret_hu_conv;
        }
 
@@ -65,8 +65,8 @@ public class Pong extends CommonBase {
                long ret = bindings.Pong_clone(this.ptr);
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
-               Pong ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Pong(null, ret); }
-               ret_hu_conv.ptrs_to.add(this);
+               org.ldk.structs.Pong ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Pong(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }