[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_ChannelTypeFeaturesDecodeErrorZ.java
index d72b8edbc5a32ee5086cd55cd0c2d98a488b3288..e485a360e09b84713833e842d520736b7b57935c 100644 (file)
@@ -13,6 +13,10 @@ public class Result_ChannelTypeFeaturesDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_ChannelTypeFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(ptr)) {
                        return new Result_ChannelTypeFeaturesDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_ChannelTypeFeaturesDecodeErrorZ extends CommonBase {
         * Creates a new CResult_ChannelTypeFeaturesDecodeErrorZ in the success state.
         */
        public static Result_ChannelTypeFeaturesDecodeErrorZ ok(org.ldk.structs.ChannelTypeFeatures o) {
-               long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelTypeFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret);