[Java] Update batteries and tests to LDK 0.0.117
[ldk-java] / src / main / java / org / ldk / structs / Result_PongDecodeErrorZ.java
index 8412a352d03168663181feeadb9c1c44bdb98fe9..c9c5e096c22a20e4f0e91395b30b39d084ba1f27 100644 (file)
@@ -45,7 +45,7 @@ public class Result_PongDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_PongDecodeErrorZ in the success state.
         */
-       public static Result_PongDecodeErrorZ ok(Pong o) {
+       public static Result_PongDecodeErrorZ ok(org.ldk.structs.Pong o) {
                long ret = bindings.CResult_PongDecodeErrorZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -57,11 +57,12 @@ public class Result_PongDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_PongDecodeErrorZ in the error state.
         */
-       public static Result_PongDecodeErrorZ err(DecodeError e) {
+       public static Result_PongDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_PongDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }