summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-05 22:37:19 +0000
committerPaul Phillips <paulp@improving.org>2011-01-05 22:37:19 +0000
commit6915e7e999f4fac555e0bb066c787191575a40ed (patch)
tree17753f797a6ed51a96ee55266042629a12fc5f96 /src/library
parent86044e0e548442024af79b7076c02df59473792d (diff)
downloadscala-6915e7e999f4fac555e0bb066c787191575a40ed.tar.gz
scala-6915e7e999f4fac555e0bb066c787191575a40ed.tar.bz2
scala-6915e7e999f4fac555e0bb066c787191575a40ed.zip
De-finalized equals/hashCode on Trees so people...
De-finalized equals/hashCode on Trees so people ill-advisedly creating custom Trees with non-reference equality can continue doing their ill-advised thing. No review.
Diffstat (limited to 'src/library')
-rwxr-xr-xsrc/library/scala/reflect/generic/Trees.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/reflect/generic/Trees.scala b/src/library/scala/reflect/generic/Trees.scala
index 6493c4f667..a84dd98210 100755
--- a/src/library/scala/reflect/generic/Trees.scala
+++ b/src/library/scala/reflect/generic/Trees.scala
@@ -135,8 +135,8 @@ trait Trees { self: Universe =>
buffer.toString
}
- final override def hashCode(): Int = System.identityHashCode(this)
- final override def equals(that: Any) = this eq that.asInstanceOf[AnyRef]
+ override def hashCode(): Int = System.identityHashCode(this)
+ override def equals(that: Any) = this eq that.asInstanceOf[AnyRef]
}
private[scala] def duplicateTree(tree: Tree): Tree = tree