[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / GraphSyncError.java
index 368c6170d1d800e04200078a8094165b014c3b50..cdc40d5e3d1b87382af005f07f6c3c16e9b4610d 100644 (file)
@@ -79,19 +79,20 @@ public class GraphSyncError extends CommonBase {
        /**
         * Utility method to constructs a new DecodeError-variant GraphSyncError
         */
-       public static GraphSyncError decode_error(DecodeError a) {
+       public static GraphSyncError decode_error(org.ldk.structs.DecodeError a) {
                long ret = bindings.GraphSyncError_decode_error(a.ptr);
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret);
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(a); };
                return ret_hu_conv;
        }
 
        /**
         * Utility method to constructs a new LightningError-variant GraphSyncError
         */
-       public static GraphSyncError lightning_error(LightningError a) {
+       public static GraphSyncError lightning_error(org.ldk.structs.LightningError a) {
                long ret = bindings.GraphSyncError_lightning_error(a == null ? 0 : a.ptr);
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }