diff options
author | Eugene Vigdorchik <eugene.vigdorchik@gmail.com> | 2013-04-26 16:39:20 +0400 |
---|---|---|
committer | Eugene Vigdorchik <eugene.vigdorchik@gmail.com> | 2013-05-16 16:10:11 +0400 |
commit | c88f7338882c8ae81f1004407bc8c21b1cbe7b36 (patch) | |
tree | 5cae494f103701b93d84c62875386196f270bf4e /test/scaladoc/scalacheck | |
parent | 5819b78c25c9cba25fc84018d3905fe265bb4e18 (diff) | |
download | scala-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')
-rw-r--r-- | test/scaladoc/scalacheck/CommentFactoryTest.scala | 4 |
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") { |