From 5b4c4f167d80a84fa52516ea2fca12dc13e05c46 Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Thu, 16 Jun 2016 17:00:32 +0100 Subject: [PATCH] core: .equals() -> == --- core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt b/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt index d4cda1c338..6fb5a03f20 100644 --- a/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt +++ b/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt @@ -262,7 +262,7 @@ object Ed25519PrivateKeySerializer : Serializer() { val ed25519Curve = EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512) override fun write(kryo: Kryo, output: Output, obj: EdDSAPrivateKey) { - check(obj.params.equals(ed25519Curve)) + check(obj.params == ed25519Curve) output.writeInt(obj.seed.size, true) output.writeBytes(obj.seed) } @@ -280,7 +280,7 @@ object Ed25519PublicKeySerializer : Serializer() { val ed25519Curve = EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512) override fun write(kryo: Kryo, output: Output, obj: EdDSAPublicKey) { - check(obj.params.equals(ed25519Curve)) + check(obj.params == ed25519Curve) output.writeInt(obj.abyte.size, true) output.writeBytes(obj.abyte) }