summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/Erasure.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-09-18 15:31:15 +1000
committerJason Zaugg <jzaugg@gmail.com>2016-09-26 21:13:59 +1000
commit87b3d2cc41b175742da9301210299c3b1524a287 (patch)
tree493e0350edb70ee375d7f39909ac76acfb1c9d9b /src/compiler/scala/tools/nsc/transform/Erasure.scala
parent6df14e57a4980897d5517f002c04584b82e05b15 (diff)
downloadscala-87b3d2cc41b175742da9301210299c3b1524a287.tar.gz
scala-87b3d2cc41b175742da9301210299c3b1524a287.tar.bz2
scala-87b3d2cc41b175742da9301210299c3b1524a287.zip
Optimize javaBinaryName callers
... by calling javaBinaryNameString, instead. They all are happy with a throw away String, there is no advantage to interning this into the name table.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/Erasure.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/Erasure.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Erasure.scala b/src/compiler/scala/tools/nsc/transform/Erasure.scala
index 69240b07a1..cc234eb623 100644
--- a/src/compiler/scala/tools/nsc/transform/Erasure.scala
+++ b/src/compiler/scala/tools/nsc/transform/Erasure.scala
@@ -258,7 +258,7 @@ abstract class Erasure extends InfoTransform
// Anything which could conceivably be a module (i.e. isn't known to be
// a type parameter or similar) must go through here or the signature is
// likely to end up with Foo<T>.Empty where it needs Foo<T>.Empty$.
- def fullNameInSig(sym: Symbol) = "L" + enteringJVM(sym.javaBinaryName)
+ def fullNameInSig(sym: Symbol) = "L" + enteringJVM(sym.javaBinaryNameString)
def jsig(tp0: Type, existentiallyBound: List[Symbol] = Nil, toplevel: Boolean = false, primitiveOK: Boolean = true): String = {
val tp = tp0.dealias