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 | |
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')
-rwxr-xr-x | test/files/presentation/doc/doc.scala | 2 | ||||
-rw-r--r-- | test/scaladoc/scalacheck/CommentFactoryTest.scala | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/files/presentation/doc/doc.scala b/test/files/presentation/doc/doc.scala index 916b7832f4..a64a423cc5 100755 --- a/test/files/presentation/doc/doc.scala +++ b/test/files/presentation/doc/doc.scala @@ -71,7 +71,7 @@ object Test extends InteractiveTest { if (expanded.isEmpty) None else - Some(ask { () => parseAtSymbol(expanded, raw, pos, Some(sym.owner)) }) + Some(ask { () => parseAtSymbol(expanded, raw, pos, sym.owner) }) } } } 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") { |