If empty comment line, don't try to add "the rest of the line" Signed-off-by: Erik de Bruin <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/68a7c9eb Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/68a7c9eb Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/68a7c9eb Branch: refs/heads/feature/flexmojos-tests Commit: 68a7c9ebbe34829cb4c52de56181d041195d8594 Parents: dcb5c70 Author: Erik de Bruin <[email protected]> Authored: Tue Oct 21 13:14:47 2014 +0200 Committer: Erik de Bruin <[email protected]> Committed: Thu Oct 23 19:42:52 2014 +0200 ---------------------------------------------------------------------- .../src/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/68a7c9eb/compiler.jx/src/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java ---------------------------------------------------------------------- diff --git a/compiler.jx/src/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java b/compiler.jx/src/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java index 379a4c2..b44253c 100644 --- a/compiler.jx/src/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java +++ b/compiler.jx/src/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java @@ -20,7 +20,6 @@ package org.apache.flex.compiler.asdoc.flexjs; import org.apache.flex.compiler.asdoc.IASDocComment; -import org.apache.flex.compiler.internal.codegen.js.JSDocEmitterTokens; import antlr.Token; @@ -47,7 +46,8 @@ public class ASDocComment implements IASDocComment String line = lines[i]; int star = line.indexOf("*"); sb.append(" "); - sb.append(line.substring(star)); + if (star > -1) + sb.append(line.substring(star)); sb.append("\n"); } return sb.toString();
