summaryrefslogtreecommitdiff
path: root/test/instrumented
diff options
context:
space:
mode:
authorSébastien Doeraene <sjrdoeraene@gmail.com>2016-04-13 13:05:39 +0200
committerSébastien Doeraene <sjrdoeraene@gmail.com>2016-04-13 16:20:46 +0200
commit950f6df06ef122cc6b71a4b402b1b22d9e5376dc (patch)
treeb76bf4b769f6e0afa16791a1c84a8cd45d5cd675 /test/instrumented
parent6090f53ee9ab2677f732ea5cc7144cb9684b2593 (diff)
downloadscala-950f6df06ef122cc6b71a4b402b1b22d9e5376dc.tar.gz
scala-950f6df06ef122cc6b71a4b402b1b22d9e5376dc.tar.bz2
scala-950f6df06ef122cc6b71a4b402b1b22d9e5376dc.zip
Hide ScalaRunTime.isTuple inside stringOf.
Because it is otherwise unused.
Diffstat (limited to 'test/instrumented')
-rw-r--r--test/instrumented/library/scala/runtime/ScalaRunTime.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/instrumented/library/scala/runtime/ScalaRunTime.scala b/test/instrumented/library/scala/runtime/ScalaRunTime.scala
index 9df3bea5d9..9b01eec039 100644
--- a/test/instrumented/library/scala/runtime/ScalaRunTime.scala
+++ b/test/instrumented/library/scala/runtime/ScalaRunTime.scala
@@ -37,8 +37,6 @@ object ScalaRunTime {
def isValueClass(clazz: jClass[_]) = clazz.isPrimitive()
- // includes specialized subclasses and future proofed against hypothetical TupleN (for N > 22)
- def isTuple(x: Any) = x != null && x.getClass.getName.startsWith("scala.Tuple")
def isAnyVal(x: Any) = x match {
case _: Byte | _: Short | _: Char | _: Int | _: Long | _: Float | _: Double | _: Boolean | _: Unit => true
case _ => false
@@ -239,6 +237,9 @@ object ScalaRunTime {
def isScalaClass(x: AnyRef) = packageOf(x) startsWith "scala."
def isScalaCompilerClass(x: AnyRef) = packageOf(x) startsWith "scala.tools.nsc."
+ // includes specialized subclasses and future proofed against hypothetical TupleN (for N > 22)
+ def isTuple(x: Any) = x != null && x.getClass.getName.startsWith("scala.Tuple")
+
// When doing our own iteration is dangerous
def useOwnToString(x: Any) = x match {
// Node extends NodeSeq extends Seq[Node] and MetaData extends Iterable[MetaData]