SonarSource is pleased to announce the release of the Java plugin version 4.2.
The main goal of this release was to improve the overall end-user experience by removing a bunch of reported false-positives on rules. Moreover a performance hotspot was from time to time highly impacting users of SonarLint for Eclipse and SonarLint for IntelliJ when analyzing Java source files: SONARJAVA-1818.
Most of the reported false-positives on rules were due to an incomplete semantic coverage of the Java 8 Stream API:
- SONARJAVA-1801 on rule Unused method parameters should be removed (Code Smell, cert, misra, unused)
- SONARJAVA-1803 on rule Unused “private” fields should be removed (Code Smell, cert, unused)
- SONARJAVA-1804 on rule Unused “private” methods should be removed (Code Smell, cert, unused)
- SONARJAVA-1805 on rule Unused local variables should be removed (Code Smell, unused)
- SONARJAVA-1810 on rule Non-serializable objects should not be stored in “HttpSession” objects (Bug, cwe)
- SONARJAVA-1800 on rule Lines should not be too long (Code Smell, convention)
Please read the release notes for more information about all the other improvements and bug fixes part of this release.
Documentation available on the product page.
You can install or update it via the Update Center.