You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/01/11 06:45:05 UTC
[royale-compiler] 06/10: only warn on truly public vars,
not mx_internal or _internal
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 <ah...@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));