]> git.bitcoin.ninja Git - ldk-java/blobdiff - src/main/java/org/ldk/structs/AnchorDescriptor.java
[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / AnchorDescriptor.java
index d843af52d41d992cad1350d958d88d96c8bb26e8..f821d70731937bad5469ce4c3e5c4a81f2b45bc8 100644 (file)
@@ -36,7 +36,7 @@ public class AnchorDescriptor extends CommonBase {
         * The parameters required to derive the signer for the anchor input.
         */
        public void set_channel_derivation_parameters(org.ldk.structs.ChannelDerivationParameters val) {
-               bindings.AnchorDescriptor_set_channel_derivation_parameters(this.ptr, val == null ? 0 : val.ptr);
+               bindings.AnchorDescriptor_set_channel_derivation_parameters(this.ptr, val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
                if (this != null) { this.ptrs_to.add(val); };
@@ -60,7 +60,7 @@ public class AnchorDescriptor extends CommonBase {
         * output.
         */
        public void set_outpoint(org.ldk.structs.OutPoint val) {
-               bindings.AnchorDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr);
+               bindings.AnchorDescriptor_set_outpoint(this.ptr, val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
                if (this != null) { this.ptrs_to.add(val); };
@@ -70,7 +70,7 @@ public class AnchorDescriptor extends CommonBase {
         * Constructs a new AnchorDescriptor given each field
         */
        public static AnchorDescriptor of(org.ldk.structs.ChannelDerivationParameters channel_derivation_parameters_arg, org.ldk.structs.OutPoint outpoint_arg) {
-               long ret = bindings.AnchorDescriptor_new(channel_derivation_parameters_arg == null ? 0 : channel_derivation_parameters_arg.ptr, outpoint_arg == null ? 0 : outpoint_arg.ptr);
+               long ret = bindings.AnchorDescriptor_new(channel_derivation_parameters_arg.ptr, outpoint_arg.ptr);
                Reference.reachabilityFence(channel_derivation_parameters_arg);
                Reference.reachabilityFence(outpoint_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -105,7 +105,7 @@ public class AnchorDescriptor extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(org.ldk.structs.AnchorDescriptor b) {
-               boolean ret = bindings.AnchorDescriptor_eq(this.ptr, b == null ? 0 : b.ptr);
+               boolean ret = bindings.AnchorDescriptor_eq(this.ptr, b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
                if (this != null) { this.ptrs_to.add(b); };