One of the best features of Eclipse is that it does not use the standard java compiler (javac.exe) which comes as part of the JDK. Eclipse instead comes bundled with
it's own compiler, which allows you to configure it in many interesting ways.For e.g. Some of the things you can do at compile time are as follows Report an error/warning for missing javadocs on public methods. Report an error/warning for malformed/incorrectly written javadocs.Report an error/warning for undocumented empty blocks.Report an error/warning for unused import statement.Report an error/warning for access to a null pointer.etc
All these settings can be configured by the settings under
Preferences -> Java -> Compiler.
Many of these settings are set to 'ignore' by default.
If set appropriately, Eclipse by itself can improve the quality of code which we write.
No comments:
Post a Comment