To add the plugin, start the IDE and find the Plugins dialog. Browse Repositories, choose Category: Build, and find the Error-prone plugin. Right-click and choose "Download and install". The IDE will restart after you've exited these dialogs.
To enable Error Prone, choose Settings | Compiler | Java Compiler | Use compiler: Javac with error-prone
and also make sure Settings | Compiler | Use external build
is NOT selected.
Eclipse
Ideally, you should find out about failed Error Prone checks as you code in eclipse, thanks to the continuous compilation by ECJ (eclipse compiler for Java). But this is an architectural challenge, as Error Prone currently relies heavily on the com.sun.*
APIs for accessing the AST and symbol table.
For now, Eclipse users should use the Findbugs eclipse plugin instead, as it catches many of the same issues.
Read full article from Installation
No comments:
Post a Comment