[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_RevocationKeyDecodeErrorZ.java
index 1b67095b21429b1dc6505cee9e521ff994f14e96..6bcda0226ee25d4bb90a75f950696d00dfc23600 100644 (file)
@@ -13,6 +13,10 @@ public class Result_RevocationKeyDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_RevocationKeyDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_RevocationKeyDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_RevocationKeyDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_RevocationKeyDecodeErrorZ_is_ok(ptr)) {
                        return new Result_RevocationKeyDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_RevocationKeyDecodeErrorZ extends CommonBase {
         * Creates a new CResult_RevocationKeyDecodeErrorZ in the success state.
         */
        public static Result_RevocationKeyDecodeErrorZ ok(org.ldk.structs.RevocationKey o) {
-               long ret = bindings.CResult_RevocationKeyDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_RevocationKeyDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_RevocationKeyDecodeErrorZ ret_hu_conv = Result_RevocationKeyDecodeErrorZ.constr_from_ptr(ret);