]> git.bitcoin.ninja Git - ldk-java/blobdiff - src/main/java/org/ldk/structs/PayeePubKey.java
[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / PayeePubKey.java
index 7fb0257594b5a9a94cafd4b49226be9531dddb51..2605380226e871498850182add3a0d6f591080a7 100644 (file)
@@ -63,7 +63,7 @@ public class PayeePubKey extends CommonBase {
        }
 
        /**
-        * Checks if two PayeePubKeys contain equal inner contents.
+        * Generates a non-cryptographic 64-bit hash of the PayeePubKey.
         */
        public long hash() {
                long ret = bindings.PayeePubKey_hash(this.ptr);
@@ -80,7 +80,7 @@ public class PayeePubKey extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(org.ldk.structs.PayeePubKey b) {
-               boolean ret = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : b.ptr);
+               boolean ret = bindings.PayeePubKey_eq(this.ptr, b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
                if (this != null) { this.ptrs_to.add(b); };