[stringtemplate-interest] [ST4 Beta-4] Extra import in Java sources

Terence Parr parrt at cs.usfca.edu
Wed Feb 9 17:49:06 PST 2011


On Feb 9, 2011, at 12:45 AM, Udo Borkowski wrote:

> Hi,
> 
> there is an extra import in Interpreter.java:
> 	import org.antlr.stringtemplate.StringTemplateWriter;
> 

  thanks. I think I quickly removed it from my version but it might have gotten into the beta release.

> 
> Talking about extra imports: Eclipse writes warnings for these imports:
> 
> GroupLexer.java, GroupParser.java
> 	import java.util.Stack;
> 	import java.util.List;
> 	import java.util.ArrayList;
> 
> STParser.java	
> 	import java.util.Stack;
> 
> These imports are generated by ANTLR. If it is hard to generate these imports only when they are needed I suggest ANTLR will generate instead of
> 
> 	import java.util.Stack;
> 	import java.util.List;
> 	import java.util.ArrayList;
> 
> just this one wildcard import:
> 
> 	import java.util.*
> 
> This should make the warnings go away.

Unfortunately it doesn't because there is a conflict with BitSet.
Ter


More information about the stringtemplate-interest mailing list