diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-14 10:32:49 -0700 |
---|---|---|
committer | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-15 16:20:43 -0700 |
commit | 910a18ed14dd81150f008e785f8773bf997eb1f6 (patch) | |
tree | 655ea6d2b42e00ccd866435ed01d9dd91407dca6 /src/compiler/scala/tools/nsc/backend/jvm/opt/ClosureOptimizer.scala | |
parent | 99a82be91cbb85239f70508f6695c6b21fd3558c (diff) | |
download | scala-910a18ed14dd81150f008e785f8773bf997eb1f6.tar.gz scala-910a18ed14dd81150f008e785f8773bf997eb1f6.tar.bz2 scala-910a18ed14dd81150f008e785f8773bf997eb1f6.zip |
Fix some typos in `spec` documents and comments.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/jvm/opt/ClosureOptimizer.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/opt/ClosureOptimizer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/opt/ClosureOptimizer.scala b/src/compiler/scala/tools/nsc/backend/jvm/opt/ClosureOptimizer.scala index 58054f85ad..4935b9d1a0 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/opt/ClosureOptimizer.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/opt/ClosureOptimizer.scala @@ -156,7 +156,7 @@ class ClosureOptimizer[BT <: BTypes](val btypes: BT) { // TODO: This is maybe over-cautious. // We are checking if the closure body method is accessible at the closure callsite. // If the closure allocation has access to the body method, then the callsite (in the same - // method as the alloction) should have access too. + // method as the allocation) should have access too. val bodyAccessible: Either[OptimizerWarning, Boolean] = for { (bodyMethodNode, declClass) <- byteCodeRepository.methodNode(lambdaBodyHandle.getOwner, lambdaBodyHandle.getName, lambdaBodyHandle.getDesc): Either[OptimizerWarning, (MethodNode, InternalName)] isAccessible <- inliner.memberIsAccessible(bodyMethodNode.access, classBTypeFromParsedClassfile(declClass), classBTypeFromParsedClassfile(lambdaBodyHandle.getOwner), ownerClass) |