The unused imports showed up with 1.0.1.  With 1.0.4, I was getting a NPE with the schema I was using so no classes were generated.  I'll be putting in a Jira bug for the NPE this morning.
 
Tom

From: Werner Guttmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 25, 2006 5:38 AM
To: [email protected]
Subject: RE: [castor-user] Xml: Source Code Generator - eliminating unused imports

What version of Castor are you using ? With 1.0.4, you should not get any of these at all ..
 
Werner


From: Carey, Tom [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 24. Oktober 2006 19:24
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