summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-01-08 06:33:22 -0800
committerJason Zaugg <jzaugg@gmail.com>2014-01-08 06:33:22 -0800
commitada8d9156baad2d8a24c1a40e032eb4bc7154bac (patch)
tree017c50905343099c8a5d6f1cc4409f9cb511f8de
parentfa62c04904ccb27a3925b6ed9104af6060041756 (diff)
parentbbe963873d50dcdfc264c930bf2bfb938024f333 (diff)
downloadscala-ada8d9156baad2d8a24c1a40e032eb4bc7154bac.tar.gz
scala-ada8d9156baad2d8a24c1a40e032eb4bc7154bac.tar.bz2
scala-ada8d9156baad2d8a24c1a40e032eb4bc7154bac.zip
Merge pull request #3289 from soc/SI-7492-redux
SI-7492 Make scala.runtime.MethodCache private[scala]
-rw-r--r--src/library/scala/runtime/MethodCache.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/runtime/MethodCache.scala b/src/library/scala/runtime/MethodCache.scala
index bbf80593db..2d5f832e1f 100644
--- a/src/library/scala/runtime/MethodCache.scala
+++ b/src/library/scala/runtime/MethodCache.scala
@@ -22,7 +22,7 @@ import scala.annotation.tailrec
* generated per call point, and will uniquely relate to the method called
* at that point, making the method name and argument types irrelevant. */
/* TODO: if performance is acceptable, PolyMethodCache should be made generic on the method type */
-sealed abstract class MethodCache {
+private[scala] sealed abstract class MethodCache {
/** Searches for a cached method in the `MethodCache` chain that
* is compatible with receiver class `forReceiver`. If none is cached,
* `null` is returned. If `null` is returned, find's caller should look-
@@ -32,7 +32,7 @@ sealed abstract class MethodCache {
def add(forReceiver: JClass[_], forMethod: JMethod): MethodCache
}
-final class EmptyMethodCache extends MethodCache {
+private[scala] final class EmptyMethodCache extends MethodCache {
def find(forReceiver: JClass[_]): JMethod = null
@@ -41,7 +41,7 @@ final class EmptyMethodCache extends MethodCache {
}
-final class MegaMethodCache(
+private[scala] final class MegaMethodCache(
private[this] val forName: String,
private[this] val forParameterTypes: Array[JClass[_]]
) extends MethodCache {
@@ -53,7 +53,7 @@ final class MegaMethodCache(
}
-final class PolyMethodCache(
+private[scala] final class PolyMethodCache(
private[this] val next: MethodCache,
private[this] val receiver: JClass[_],
private[this] val method: JMethod,