This is a reasonable request.  The unused imports probably depend on your specific configuration.  Please create a new issue at http://jira.codehaus.org/browse/CASTOR and attach all XSD and instructions for us to reproduce your complaints and we can look at it.  This one *should* be straightforward.
 
    Thanks
    Eddie


From: Carey, Tom [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 24, 2006 12:24 PM
To: '[email protected]'
Subject: [castor-user] Xml: Source Code Generator - eliminating unused imports

This is minor but was wondering if there was a way to eliminate the unused imports in the generated classes?
 
Some contain these:
Warning(14,1): import java.io.Serializable not used
Warning(15,1): import java.util.Enumeration not used
Warning(17,1): import org.exolab.castor.xml.Marshaller not used
Warning(18,1): import org.exolab.castor.xml.Unmarshaller not used
 
while others contain:
Warning(14,1): import java.io.IOException not used
Warning(15,1): import java.io.Reader not used
Warning(16,1): import java.io.Serializable not used
Warning(17,1): import java.io.Writer not used
Warning(18,1): import org.exolab.castor.xml.MarshalException not used
Warning(21,1): import org.exolab.castor.xml.ValidationException not used
Warning(22,1): import org.xml.sax.ContentHandler not used
 
and finally most descriptors contain:
Warning(14,1): import org.exolab.castor.mapping.AccessMode not used
Warning(15,1): import org.exolab.castor.xml.TypeValidator not used
Warning(16,1): import org.exolab.castor.xml.XMLFieldDescriptor not used
Warning(17,1): import org.exolab.castor.xml.validators.* not used
 
Tom Carey
Talk America
office:    215-862-6875
cell:      215-499-5771
im:        careytm1
 

Reply via email to