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

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

commit 77e31e2bf540ea7e8ae5ed87e90e654ffe72367f
Author: Alex Harui <aha...@apache.org>
AuthorDate: Wed Jan 9 17:20:13 2019 -0800

    only warn on truly public vars, not mx_internal or _internal
---
 .../royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java
index b26dcff..526056a 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleDocEmitter.java
@@ -436,7 +436,7 @@ public class JSRoyaleDocEmitter extends JSGoogDocEmitter
                if (tag != null)
                        bindable = true;
             }
-            if (warnPublicVars && !node.isConst() && !bindable && 
!ns.contentEquals("internal"))
+            if (warnPublicVars && !node.isConst() && !bindable && 
ns.contentEquals("public"))
             {
                 if (!suppressedWarning(node, fjp))
                        fjp.getProblems().add(new 
PublicVarWarningProblem(node));

Reply via email to