projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.81k stars 2.37k forks source link

lombok.javac.handlers.JavacHandlerUtil#deleteImportFromCompilationUnit #601

Open lombokissues opened 9 years ago

lombokissues commented 9 years ago

Migrated from Google Code (issue 566)

lombokissues commented 9 years ago

:bust_in_silhouette: nagendra.raja   :clock8: Aug 26, 2013 at 05:32 UTC

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

lombokissues commented 9 years ago

End of migration