[Java] Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / PaymentError.java
index 7f1d4935f8b6d41898060ac2b286725735a0ee86..95f9705a2a3277394b711bf8d1d84c15607bf7f1 100644 (file)
@@ -4,6 +4,7 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import java.lang.ref.Reference;
 import javax.annotation.Nullable;
 
 
@@ -36,7 +37,7 @@ public class PaymentError extends CommonBase {
         * An error resulting from the provided [`Invoice`] or payment hash.
         */
        public final static class Invoice extends PaymentError {
-               public final String invoice;
+               public final java.lang.String invoice;
                private Invoice(long ptr, bindings.LDKPaymentError.Invoice obj) {
                        super(null, ptr);
                        this.invoice = obj.invoice;
@@ -46,7 +47,7 @@ public class PaymentError extends CommonBase {
         * An error occurring when finding a route.
         */
        public final static class Routing extends PaymentError {
-               public final LightningError routing;
+               public final org.ldk.structs.LightningError routing;
                private Routing(long ptr, bindings.LDKPaymentError.Routing obj) {
                        super(null, ptr);
                        long routing = obj.routing;
@@ -59,17 +60,18 @@ public class PaymentError extends CommonBase {
         * An error occurring when sending a payment.
         */
        public final static class Sending extends PaymentError {
-               public final PaymentSendFailure sending;
+               public final org.ldk.structs.PaymentSendFailure sending;
                private Sending(long ptr, bindings.LDKPaymentError.Sending obj) {
                        super(null, ptr);
                        long sending = obj.sending;
-                       PaymentSendFailure sending_hu_conv = PaymentSendFailure.constr_from_ptr(sending);
+                       org.ldk.structs.PaymentSendFailure sending_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(sending);
                        sending_hu_conv.ptrs_to.add(this);
                        this.sending = sending_hu_conv;
                }
        }
        long clone_ptr() {
                long ret = bindings.PaymentError_clone_ptr(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -78,8 +80,9 @@ public class PaymentError extends CommonBase {
         */
        public PaymentError clone() {
                long ret = bindings.PaymentError_clone(this.ptr);
+               Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
-               PaymentError ret_hu_conv = PaymentError.constr_from_ptr(ret);
+               org.ldk.structs.PaymentError ret_hu_conv = org.ldk.structs.PaymentError.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
@@ -89,8 +92,9 @@ public class PaymentError extends CommonBase {
         */
        public static PaymentError invoice(java.lang.String a) {
                long ret = bindings.PaymentError_invoice(a);
+               Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
-               PaymentError ret_hu_conv = PaymentError.constr_from_ptr(ret);
+               org.ldk.structs.PaymentError ret_hu_conv = org.ldk.structs.PaymentError.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
@@ -100,8 +104,9 @@ public class PaymentError extends CommonBase {
         */
        public static PaymentError routing(LightningError a) {
                long ret = bindings.PaymentError_routing(a == null ? 0 : a.ptr & ~1);
+               Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
-               PaymentError ret_hu_conv = PaymentError.constr_from_ptr(ret);
+               org.ldk.structs.PaymentError ret_hu_conv = org.ldk.structs.PaymentError.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
@@ -111,8 +116,9 @@ public class PaymentError extends CommonBase {
         */
        public static PaymentError sending(PaymentSendFailure a) {
                long ret = bindings.PaymentError_sending(a.ptr);
+               Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
-               PaymentError ret_hu_conv = PaymentError.constr_from_ptr(ret);
+               org.ldk.structs.PaymentError ret_hu_conv = org.ldk.structs.PaymentError.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }