[
http://jira.jboss.com/jira/browse/DNA-141?page=comments#action_12417117 ]
Dan Florian commented on DNA-141:
---------------------------------
After a bit of research, here's one (possible) solution: Modify the Java.stg template
in org.antlr.codegen.templates/Java/ as follows:
<@imports>
import org.antlr.runtime.*;
<if(TREE_PARSER)>
import org.antlr.runtime.tree.*;
<endif>
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
<if(backtracking)>
import java.util.Map;
import java.util.HashMap;
<endif>
@SuppressWarnings({"unused", "cast"})
<@end>
...
Generated lexer/parser code should include suppress warnings
annotation
-----------------------------------------------------------------------
Key: DNA-141
URL:
http://jira.jboss.com/jira/browse/DNA-141
Project: DNA
Issue Type: Sub-task
Components: Sequencers
Affects Versions: 0.2
Reporter: Dan Florian
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira