Lint and doclint are sources that report warnings to javac. Let's take a look at each one:
- Lint analyzes bytecode and source code for javac. The goal of lint is to identify security vulnerabilities in the code being analyzed. Lint can also provide insights into scalability and thread locking concerns. There is more to lint and the overall purpose is to save developers time.
You can read more about lint here:
http://openjdk.java.net/jeps/212
http://openjdk.java.net/jeps/212
- Doclint is similar to lint and is specific to javadoc. Both lint and doclint report errors and warnings during the compile process. Resolution of these warnings was the focus of JEP 212. When using core libraries, there should not be any warnings. This mindset led to JEP 212, which has been resolved and implemented in Java 9.
A comprehensive list of the lint and doclint warnings can be reviewed...