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