6.12.0.24852
m-g-sonar
released this
01 Feb 14:51
·
1659 commits
to master
since this release
Release Notes - SonarJava - Version 6.12.0.24852
Bug
- [SONARJAVA-3487] - [Java 14 - Records preview feature] NPE when accessing recordComponent.owner()
- [SONARJAVA-3488] - [Java 14 - Records preview feature] NPE when computing metrics of methods
- [SONARJAVA-3489] - [Java 14 - Records preview feature] S1123 NPE when visiting records
- [SONARJAVA-3490] - [Java 14 - Records preview feature] S1117 NPE when visiting records
New Feature
- [SONARJAVA-2961] - Rule S4977: Type parameters should not shadow other type parameters
- [SONARJAVA-3255] - Rule S5663: Simple string literal should be used for single line strings
- [SONARJAVA-3256] - Rule S5664: Whitespace for text block indent should be consistent
- [SONARJAVA-3257] - Rule S5665: Escape sequences should not be used in text blocks
- [SONARJAVA-3505] - Upgrade to ECJ 3.24 to enable support of Java 15
- [SONARJAVA-3606] - Rule S5979: Annotated Mockito objects should be initialized
- [SONARJAVA-3658] - Add support of Java 15 Text Blocks with a new dedicated Kind: TEXT_BLOCK
- [SONARJAVA-3670] - Rule S6126: String multiline concatenation can be replaced with a Text block
Task
- [SONARJAVA-3680] - Update rules metadata
Improvement
- [SONARJAVA-3114] - Message about missing bytecode dependencies should appear only when dependencies are actually missing
- [SONARJAVA-3563] - Report 10 slowest analyzed files
- [SONARJAVA-3657] - Improve S3986 to cover DateTimeFormatter
- [SONARJAVA-3665] - Add support of Text Blocks in S2973 (Escaped unicode characters)
- [SONARJAVA-3667] - Fix text block support in S2479
- [SONARJAVA-3671] - Improve rule S1192 to Support Text blocks
- [SONARJAVA-3672] - S1213 Check order of static and instance variables
False-Positive
- [SONARJAVA-3659] - S2755 should not raise an issue when "EntityResolver" is customized
- [SONARJAVA-3661] - FP on S2259 (Null Pointer Dereference) when using MapUtils from Apache Collections
- [SONARJAVA-3662] - Improve rule S2142 to check methods called inside catch block