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

Udo Borkowski ub at abego-software.de
Wed Feb 9 00:45:16 PST 2011


Hi,

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


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.


Udo




More information about the stringtemplate-interest mailing list