You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/10/24 13:30:06 UTC

[14/22] git commit: [flex-falcon] [refs/heads/develop] - If empty comment line, don't try to add "the rest of the line"

If empty comment line, don't try to add "the rest of the line"

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


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/develop
Commit: 68a7c9ebbe34829cb4c52de56181d041195d8594
Parents: dcb5c70
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Oct 21 13:14:47 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
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();