lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

lombok.javac.handlers.JavacHandlerUtil#deleteImportFromCompilationUnit #566

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The delete imports method 
lombok.javac.handlers.JavacHandlerUtil#deleteImportFromCompilationUnit

does not delete related imports. Though this does not exist within lombok, I am 
extending lombok to remove all the JAXB annotations such as

@XmlType(name = "", factoryClass = ObjectFactory.class, factoryMethod = 
"createLoginRequest")

i.e removing XmlType should remove its import XmlType and also import of 
ObjectFactory class.

Any suggestions to identify and remove associated imports would be of great 
help.

Regards,
Nagendra 

Original issue reported on code.google.com by nagendra...@gmail.com on 26 Aug 2013 at 5:32