summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/DocComments.scala
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2010-08-19 14:28:46 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2010-08-19 14:28:46 +0000
commit11f2760b59da21f6f65d94a87430c56cbc5d1609 (patch)
tree6861c553d3693f7f9660736e2caed59b9db83b53 /src/compiler/scala/tools/nsc/ast/DocComments.scala
parent16adcd1fa8abcdf8e5767d42f5b52409e3a5e294 (diff)
downloadscala-11f2760b59da21f6f65d94a87430c56cbc5d1609.tar.gz
scala-11f2760b59da21f6f65d94a87430c56cbc5d1609.tar.bz2
scala-11f2760b59da21f6f65d94a87430c56cbc5d1609.zip
Fixed build for Java 1.5. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/DocComments.scala')
-rwxr-xr-xsrc/compiler/scala/tools/nsc/ast/DocComments.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/DocComments.scala b/src/compiler/scala/tools/nsc/ast/DocComments.scala
index 24a2f68d2b..79ac89e360 100755
--- a/src/compiler/scala/tools/nsc/ast/DocComments.scala
+++ b/src/compiler/scala/tools/nsc/ast/DocComments.scala
@@ -44,7 +44,7 @@ trait DocComments { self: SymbolTable =>
* the doc comment of the overridden version is copied instead.
*/
def cookedDocComment(sym: Symbol, docStr: String = ""): String = {
- val ownComment = if (docStr.isEmpty) docComments get sym map (_.template) getOrElse ""
+ val ownComment = if (docStr.length == 0) docComments get sym map (_.template) getOrElse ""
else DocComment(docStr).template
superComment(sym) match {
case None =>