summaryrefslogtreecommitdiff
path: root/test/scaladoc/scalacheck/CommentFactoryTest.scala
diff options
context:
space:
mode:
authorEugene Vigdorchik <eugene.vigdorchik@gmail.com>2013-04-26 16:39:20 +0400
committerEugene Vigdorchik <eugene.vigdorchik@gmail.com>2013-05-16 16:10:11 +0400
commitc88f7338882c8ae81f1004407bc8c21b1cbe7b36 (patch)
tree5cae494f103701b93d84c62875386196f270bf4e /test/scaladoc/scalacheck/CommentFactoryTest.scala
parent5819b78c25c9cba25fc84018d3905fe265bb4e18 (diff)
downloadscala-c88f7338882c8ae81f1004407bc8c21b1cbe7b36.tar.gz
scala-c88f7338882c8ae81f1004407bc8c21b1cbe7b36.tar.bz2
scala-c88f7338882c8ae81f1004407bc8c21b1cbe7b36.zip
Improve code style in the Scaladoc implementation.
It fixes the following inefficiences or code style violations: - Explicit asInstanceOf calls. - Boxing symbols instead of using plain NoSymbol. - Matching `this` instead of late-binding.
Diffstat (limited to 'test/scaladoc/scalacheck/CommentFactoryTest.scala')
-rw-r--r--test/scaladoc/scalacheck/CommentFactoryTest.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/scaladoc/scalacheck/CommentFactoryTest.scala b/test/scaladoc/scalacheck/CommentFactoryTest.scala
index 96174d29d1..dc64060716 100644
--- a/test/scaladoc/scalacheck/CommentFactoryTest.scala
+++ b/test/scaladoc/scalacheck/CommentFactoryTest.scala
@@ -25,10 +25,10 @@ class Factory(val g: Global, val s: doc.Settings)
}
def parseComment(s: String): Option[Inline] =
- strip(parse(s, "", scala.tools.nsc.util.NoPosition))
+ strip(parse(s, "", scala.tools.nsc.util.NoPosition, null))
def createBody(s: String) =
- parse(s, "", scala.tools.nsc.util.NoPosition).body
+ parse(s, "", scala.tools.nsc.util.NoPosition, null).body
}
object Test extends Properties("CommentFactory") {