[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / DataLossProtect.java
index d316e5f38ed1c65c5abefac5535c281f645cb0f1..a4645845b795aafca162d37640b7157cda578d45 100644 (file)
@@ -69,8 +69,8 @@ public class DataLossProtect extends CommonBase {
                Reference.reachabilityFence(your_last_per_commitment_secret_arg);
                Reference.reachabilityFence(my_current_per_commitment_point_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
-               DataLossProtect ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new DataLossProtect(null, ret); }
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               org.ldk.structs.DataLossProtect ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DataLossProtect(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
                return ret_hu_conv;
        }
 
@@ -87,8 +87,8 @@ public class DataLossProtect extends CommonBase {
                long ret = bindings.DataLossProtect_clone(this.ptr);
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
-               DataLossProtect ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new DataLossProtect(null, ret); }
-               ret_hu_conv.ptrs_to.add(this);
+               org.ldk.structs.DataLossProtect ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DataLossProtect(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }