[dna-issues] [JBoss JIRA] Commented: (DNA-141) Generated lexer/parser code should include suppress warnings annotation
Dan Florian (JIRA)
jira-events at lists.jboss.org
Fri Jun 13 14:09:34 EDT 2008
[ 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
More information about the dna-issues
mailing list