diff options
Diffstat (limited to 'crypto/src/math/ec/ECFieldElement.cs')
-rw-r--r-- | crypto/src/math/ec/ECFieldElement.cs | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/crypto/src/math/ec/ECFieldElement.cs b/crypto/src/math/ec/ECFieldElement.cs index cc5050002..fb0e8535b 100644 --- a/crypto/src/math/ec/ECFieldElement.cs +++ b/crypto/src/math/ec/ECFieldElement.cs @@ -39,23 +39,17 @@ namespace Org.BouncyCastle.Math.EC return ToBigInteger().TestBit(0); } - public override bool Equals( - object obj) + public override bool Equals(object obj) { - if (obj == this) - return true; - - ECFieldElement other = obj as ECFieldElement; - - if (other == null) - return false; - - return Equals(other); + return Equals(obj as ECFieldElement); } - public virtual bool Equals( - ECFieldElement other) + public virtual bool Equals(ECFieldElement other) { + if (this == other) + return true; + if (null == other) + return false; return ToBigInteger().Equals(other.ToBigInteger()); } |