summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-07-24 22:55:14 -0700
committerPaul Phillips <paulp@improving.org>2012-07-24 22:55:14 -0700
commitb859a58b1ec6a0a44357c45c7d14d4cc18a2fd4a (patch)
tree06976876c3284ab0e5dbdf9c2a36e7aa6568f61c
parent392438b77ea4961c919e3115055336ce6fca85af (diff)
parent25e0d15558df0f7292697bfcd81a1f8d52e01b6e (diff)
downloadscala-b859a58b1ec6a0a44357c45c7d14d4cc18a2fd4a.tar.gz
scala-b859a58b1ec6a0a44357c45c7d14d4cc18a2fd4a.tar.bz2
scala-b859a58b1ec6a0a44357c45c7d14d4cc18a2fd4a.zip
Merge pull request #989 from scalamacros/topic/hotfix
hotfix for TwoWayCache
-rw-r--r--src/reflect/scala/reflect/runtime/TwoWayCache.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reflect/scala/reflect/runtime/TwoWayCache.scala b/src/reflect/scala/reflect/runtime/TwoWayCache.scala
index f47d59e411..e2bf5773d2 100644
--- a/src/reflect/scala/reflect/runtime/TwoWayCache.scala
+++ b/src/reflect/scala/reflect/runtime/TwoWayCache.scala
@@ -34,7 +34,7 @@ private[runtime] class TwoWayCache[J, S] {
toScalaMap get key match {
case SomeRef(v) =>
v
- case None =>
+ case _ =>
val result = body
enter(key, result)
result
@@ -45,7 +45,7 @@ private[runtime] class TwoWayCache[J, S] {
toJavaMap get key match {
case SomeRef(v) =>
v
- case None =>
+ case _ =>
val result = body
enter(result, key)
result
@@ -56,7 +56,7 @@ private[runtime] class TwoWayCache[J, S] {
toJavaMap get key match {
case SomeRef(v) =>
Some(v)
- case None =>
+ case _ =>
val result = body
for (value <- result) enter(value, key)
result