Skip to content
This repository was archived by the owner on Apr 25, 2020. It is now read-only.

Commit 2075fc3

Browse files
committed
The class of TKey does not matter in key equality
1 parent e618fbb commit 2075fc3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/scala/com/ckkloverdos/key/TKeySkeleton.scala

+1-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ sealed abstract class TKeySkeleton[T: Manifest](val name: String) extends TKey[T
2727

2828
override def equals(obj: Any) = obj match {
2929
case that: TKeySkeleton[_]
30-
(this eq that) ||
31-
(this.name == that.name &&
32-
this.keyType == that.keyType &&
33-
this.getClass == that.getClass)
30+
(this.name == that.name && this.keyType == that.keyType)
3431
case _ false
3532
}
3633

0 commit comments

Comments
 (0)