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