[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / GossipSync.java
index 47a9a82a997f0d94f1435fdab904bc930dcf1b07..8833652199c0fc7723c297b818e6334f1bd6c856 100644 (file)
@@ -71,7 +71,7 @@ public class GossipSync extends CommonBase {
         * Utility method to constructs a new P2P-variant GossipSync
         */
        public static GossipSync p2_p(org.ldk.structs.P2PGossipSync a) {
-               long ret = bindings.GossipSync_p2_p(a == null ? 0 : a.ptr);
+               long ret = bindings.GossipSync_p2_p(a.ptr);
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret);
@@ -84,7 +84,7 @@ public class GossipSync extends CommonBase {
         * Utility method to constructs a new Rapid-variant GossipSync
         */
        public static GossipSync rapid(org.ldk.structs.RapidGossipSync a) {
-               long ret = bindings.GossipSync_rapid(a == null ? 0 : a.ptr);
+               long ret = bindings.GossipSync_rapid(a.ptr);
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret);