This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9dbcdde  Use IASDocComment
9dbcdde is described below

commit 9dbcddeb9aa678ce9331aa305dc77c1544c15d0d
Author: Harbs <ha...@in-tools.com>
AuthorDate: Wed Jul 25 13:28:26 2018 +0300

    Use IASDocComment
---
 .../royale/compiler/internal/projects/RoyaleJSProject.java    | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/projects/RoyaleJSProject.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/projects/RoyaleJSProject.java
index 32fec27..6070852 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/projects/RoyaleJSProject.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/projects/RoyaleJSProject.java
@@ -28,6 +28,7 @@ import java.util.Map;
 import java.util.Set;
 import java.util.TreeSet;
 
+import org.apache.royale.compiler.asdoc.IASDocComment;
 import org.apache.royale.compiler.asdoc.royale.ASDocComment;
 import org.apache.royale.compiler.clients.JSConfiguration;
 import org.apache.royale.compiler.common.DependencyType;
@@ -113,12 +114,12 @@ public class RoyaleJSProject extends RoyaleProject
         if (to.getCompilationUnitType() == UnitType.AS_UNIT && (defNode 
instanceof IClassNode || defNode instanceof IInterfaceNode))
         {
                String defname = def.getQualifiedName();
-               ASDocComment asDoc = (defNode instanceof IClassNode) ? 
-                                                               (ASDocComment) 
((IClassNode)defNode).getASDocComment() :
-                                                               (ASDocComment) 
((IInterfaceNode)defNode).getASDocComment();
-               if (asDoc != null)
+               IASDocComment asDoc = (defNode instanceof IClassNode) ? 
+                                                               (IASDocComment) 
((IClassNode)defNode).getASDocComment() :
+                                                               (IASDocComment) 
((IInterfaceNode)defNode).getASDocComment();
+               if (asDoc != null && (asDoc instanceof ASDocComment))
                {
-                   String asDocString = asDoc.commentNoEnd();
+                   String asDocString = ((ASDocComment)asDoc).commentNoEnd();
                    if 
(asDocString.contains(JSRoyaleEmitterTokens.EXTERNS.getToken()))
                    {
                        if (!sourceExterns.contains(defname))

Reply via email to