[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / UpdateFulfillHTLC.java
index 7236463bcad0211254f4440b183fe17463bc7d58..4f5565ab4bbb71935301a78fe7de757286a643b2 100644 (file)
@@ -83,8 +83,8 @@ public class UpdateFulfillHTLC extends CommonBase {
                Reference.reachabilityFence(htlc_id_arg);
                Reference.reachabilityFence(payment_preimage_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
-               UpdateFulfillHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UpdateFulfillHTLC(null, ret); }
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               org.ldk.structs.UpdateFulfillHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateFulfillHTLC(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
                return ret_hu_conv;
        }
 
@@ -101,8 +101,8 @@ public class UpdateFulfillHTLC extends CommonBase {
                long ret = bindings.UpdateFulfillHTLC_clone(this.ptr);
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
-               UpdateFulfillHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UpdateFulfillHTLC(null, ret); }
-               ret_hu_conv.ptrs_to.add(this);
+               org.ldk.structs.UpdateFulfillHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateFulfillHTLC(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }