diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-08-19 14:28:46 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-08-19 14:28:46 +0000 |
commit | 11f2760b59da21f6f65d94a87430c56cbc5d1609 (patch) | |
tree | 6861c553d3693f7f9660736e2caed59b9db83b53 | |
parent | 16adcd1fa8abcdf8e5767d42f5b52409e3a5e294 (diff) | |
download | scala-11f2760b59da21f6f65d94a87430c56cbc5d1609.tar.gz scala-11f2760b59da21f6f65d94a87430c56cbc5d1609.tar.bz2 scala-11f2760b59da21f6f65d94a87430c56cbc5d1609.zip |
Fixed build for Java 1.5. No review.
-rwxr-xr-x | src/compiler/scala/tools/nsc/ast/DocComments.scala | 2 |
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 => |