[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_RouteHintHopDecodeErrorZ.java
index ed89d430bedb79d50c7bc0e957222ec9e15353f2..26a07c943486cecb05d3a83289bfae3a25c1e611 100644 (file)
@@ -13,6 +13,10 @@ public class Result_RouteHintHopDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_RouteHintHopDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_RouteHintHopDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_RouteHintHopDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_RouteHintHopDecodeErrorZ_is_ok(ptr)) {
                        return new Result_RouteHintHopDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_RouteHintHopDecodeErrorZ extends CommonBase {
         * Creates a new CResult_RouteHintHopDecodeErrorZ in the success state.
         */
        public static Result_RouteHintHopDecodeErrorZ ok(org.ldk.structs.RouteHintHop o) {
-               long ret = bindings.CResult_RouteHintHopDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_RouteHintHopDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret);