[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_COption_HTLCDestinationZDecodeErrorZ.java
index 74a2aea52cdd89e25db5290febf1fa77c706f7ce..e147f1f0cc41a6c6c990578e5bfc689622e8b551 100644 (file)
@@ -45,22 +45,24 @@ public class Result_COption_HTLCDestinationZDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_COption_HTLCDestinationZDecodeErrorZ in the success state.
         */
-       public static Result_COption_HTLCDestinationZDecodeErrorZ ok(Option_HTLCDestinationZ o) {
+       public static Result_COption_HTLCDestinationZDecodeErrorZ ok(org.ldk.structs.Option_HTLCDestinationZ o) {
                long ret = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_COption_HTLCDestinationZDecodeErrorZ ret_hu_conv = Result_COption_HTLCDestinationZDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(o); };
                return ret_hu_conv;
        }
 
        /**
         * Creates a new CResult_COption_HTLCDestinationZDecodeErrorZ in the error state.
         */
-       public static Result_COption_HTLCDestinationZDecodeErrorZ err(DecodeError e) {
+       public static Result_COption_HTLCDestinationZDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_COption_HTLCDestinationZDecodeErrorZ ret_hu_conv = Result_COption_HTLCDestinationZDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }