From 5778570faf523bae1150395cd6c6bf9b11be845b Mon Sep 17 00:00:00 2001 From: ericvergnaud Date: Fri, 6 Jun 2014 23:54:52 +0800 Subject: [PATCH] warningw to be fixed separately --- tool/src/org/antlr/v4/codegen/ActionTranslator.java | 3 --- tool/src/org/antlr/v4/codegen/model/InvokeRule.java | 1 - tool/src/org/antlr/v4/codegen/model/LL1StarBlockSingleAlt.java | 1 - 3 files changed, 5 deletions(-) diff --git a/tool/src/org/antlr/v4/codegen/ActionTranslator.java b/tool/src/org/antlr/v4/codegen/ActionTranslator.java index ef4731353..6647bc40b 100644 --- a/tool/src/org/antlr/v4/codegen/ActionTranslator.java +++ b/tool/src/org/antlr/v4/codegen/ActionTranslator.java @@ -175,7 +175,6 @@ public class ActionTranslator implements ActionSplitterListener { case RET: chunks.add(new RetValueRef(rf.ruleCtx, x.getText())); break; case LOCAL: chunks.add(new LocalRef(nodeContext,x.getText())); break; case PREDEFINED_RULE: chunks.add(getRulePropertyRef(x)); break; - default: // avoid warning } } if ( node.resolver.resolvesToToken(x.getText(), node) ) { @@ -230,8 +229,6 @@ public class ActionTranslator implements ActionSplitterListener { case TOKEN: chunks.add(getTokenPropertyRef(x, y)); break; - default: - // avoid warning } } diff --git a/tool/src/org/antlr/v4/codegen/model/InvokeRule.java b/tool/src/org/antlr/v4/codegen/model/InvokeRule.java index a89287701..70c9f2975 100644 --- a/tool/src/org/antlr/v4/codegen/model/InvokeRule.java +++ b/tool/src/org/antlr/v4/codegen/model/InvokeRule.java @@ -47,7 +47,6 @@ import org.antlr.v4.tool.ast.GrammarAST; import java.util.List; /** */ -@SuppressWarnings("unused") public class InvokeRule extends RuleElement implements LabeledOp { public String name; public OrderedHashSet labels = new OrderedHashSet(); // TODO: should need just 1 diff --git a/tool/src/org/antlr/v4/codegen/model/LL1StarBlockSingleAlt.java b/tool/src/org/antlr/v4/codegen/model/LL1StarBlockSingleAlt.java index a97f99782..4c1bf948d 100644 --- a/tool/src/org/antlr/v4/codegen/model/LL1StarBlockSingleAlt.java +++ b/tool/src/org/antlr/v4/codegen/model/LL1StarBlockSingleAlt.java @@ -38,7 +38,6 @@ import org.antlr.v4.tool.ast.GrammarAST; import java.util.List; /** */ -@SuppressWarnings("unused") public class LL1StarBlockSingleAlt extends LL1Loop { public LL1StarBlockSingleAlt(OutputModelFactory factory, GrammarAST starRoot, List alts) { super(factory, starRoot, alts);