[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_HTLCUpdateDecodeErrorZ.java
index b63eae8c8a83cb2b80bc735cfbac1deed93be2e2..40514adb6384ba2bc0d97ceb6258b44a069a2b9d 100644 (file)
@@ -13,6 +13,10 @@ public class Result_HTLCUpdateDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_HTLCUpdateDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_HTLCUpdateDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_HTLCUpdateDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_HTLCUpdateDecodeErrorZ_is_ok(ptr)) {
                        return new Result_HTLCUpdateDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_HTLCUpdateDecodeErrorZ extends CommonBase {
         * Creates a new CResult_HTLCUpdateDecodeErrorZ in the success state.
         */
        public static Result_HTLCUpdateDecodeErrorZ ok(org.ldk.structs.HTLCUpdate o) {
-               long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret);