Closed WonderCsabo closed 7 years ago
You can use JCodeModel.addDontImportClass
in the latest 3.0.0 SNAPSHOT (Java 8!)
Thanks for this! I am looking forward for the stable release. :)
@phax thanks again, i finally integrated this and it works as expected! 🙏
In some cases, the convention for a certain class is to never be imported, but always use its fully qualified class name when referencing it or any of its members. In the Android world, such a class is the
android.R
class, which contains resource identifiers for the system, and it should not be confused with the projectR
class which gets imported. For example:It would be nice to add an option to JCodeModel to support this.