Skip to content

Commit 25e0d15

Browse files
committed
hotfix for TwoWayCache
1 parent 392438b commit 25e0d15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reflect/scala/reflect/runtime/TwoWayCache.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private[runtime] class TwoWayCache[J, S] {
3434
toScalaMap get key match {
3535
case SomeRef(v) =>
3636
v
37-
case None =>
37+
case _ =>
3838
val result = body
3939
enter(key, result)
4040
result
@@ -45,7 +45,7 @@ private[runtime] class TwoWayCache[J, S] {
4545
toJavaMap get key match {
4646
case SomeRef(v) =>
4747
v
48-
case None =>
48+
case _ =>
4949
val result = body
5050
enter(result, key)
5151
result
@@ -56,7 +56,7 @@ private[runtime] class TwoWayCache[J, S] {
5656
toJavaMap get key match {
5757
case SomeRef(v) =>
5858
Some(v)
59-
case None =>
59+
case _ =>
6060
val result = body
6161
for (value <- result) enter(value, key)
6262
result

0 commit comments

Comments
 (0)