[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_ChannelAnnouncementDecodeErrorZ.java
index 08a4f77b057baf5b9cf51c08ffaa906c8fda0153..0a658ef47ec3062177082d8dd75dbb7306847553 100644 (file)
@@ -45,7 +45,7 @@ public class Result_ChannelAnnouncementDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_ChannelAnnouncementDecodeErrorZ in the success state.
         */
-       public static Result_ChannelAnnouncementDecodeErrorZ ok(ChannelAnnouncement o) {
+       public static Result_ChannelAnnouncementDecodeErrorZ ok(org.ldk.structs.ChannelAnnouncement o) {
                long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -57,11 +57,12 @@ public class Result_ChannelAnnouncementDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_ChannelAnnouncementDecodeErrorZ in the error state.
         */
-       public static Result_ChannelAnnouncementDecodeErrorZ err(DecodeError e) {
+       public static Result_ChannelAnnouncementDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }