[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_PayeePubKeySecp256k1ErrorZ.java
index 298eae93abd6e8a4f3a76984b2a4d6c6eef0e690..ab4f5434b388e372695a02688a691cc01ff939be 100644 (file)
@@ -13,6 +13,10 @@ public class Result_PayeePubKeySecp256k1ErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_PayeePubKeySecp256k1ErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_PayeePubKeySecp256k1ErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_PayeePubKeySecp256k1ErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_PayeePubKeySecp256k1ErrorZ_is_ok(ptr)) {
                        return new Result_PayeePubKeySecp256k1ErrorZ_OK(null, ptr);
@@ -43,7 +47,7 @@ public class Result_PayeePubKeySecp256k1ErrorZ extends CommonBase {
         * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the success state.
         */
        public static Result_PayeePubKeySecp256k1ErrorZ ok(org.ldk.structs.PayeePubKey o) {
-               long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_PayeePubKeySecp256k1ErrorZ ret_hu_conv = Result_PayeePubKeySecp256k1ErrorZ.constr_from_ptr(ret);