Java – how to make error prone code ignore the generated source code?
•
Android
I recently discovered error prone and integrated it into my android version using the gradle plugin linked on its page
Because our project uses icepick (and some other code that generates annotation processors), we generated the source code and compiled it. Unfortunately, some generated code will trigger warnings in "error prone", and I want to filter out these noises somehow
The generated code is displayed in the app / build / generated / source / apt / debug directory. How to avoid this code from the error prone line of sight?
resolvent:
Use flag - xepdisablewarningsingeneratedcode
View this issue on GitHub
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码