Release Notes - SonarJava - Version 6.4 - HTML format


  • [SONARJAVA-3380] - Sourcemap for JSP can have multiple input files
  • [SONARJAVA-3385] - NPE in JSymbol when searching the enclosing class of a variable within an interface

New Feature

  • [SONARJAVA-2794] - Rule S2479: Newline and control characters should not be used in string literals
  • [SONARJAVA-2944] - Rule S4970: Derived exceptions should not hide their parents catch block
  • [SONARJAVA-3258] - Rule S5669: Vararg method arguments should not be confusing
  • [SONARJAVA-3353] - Rule S5776: Exception testing via JUnit ExpectedException rule should not be mixed with other assertions
  • [SONARJAVA-3354] - Rule S5777: Exception testing via JUnit @Test annotation should be avoided
  • [SONARJAVA-3356] - Rule S5779: Assertion methods should not be used within the try block of a try-catch catching an Error
  • [SONARJAVA-3359] - Rule S5783: Only one method invocation is expected when testing checked exceptions
  • [SONARJAVA-3360] - Rule S5778: Only one method invocation is expected when testing runtime exceptions
  • [SONARJAVA-3361] - Rule S5785: JUnit assertTrue/assertFalse should be simplified to its dedicated assertion
  • [SONARJAVA-3362] - Rule S5786: JUnit5 test classes and methods should have default package visibility
  • [SONARJAVA-3366] - Rule S5790: JUnit5 nested test classes should be annotated with @Nested
  • [SONARJAVA-3367] - Rule S5793: Migrate your tests from JUnit4 to the new JUnit5 annotations
  • [SONARJAVA-3373] - Rule S5810: JUnit5 test classes and methods should not have private visibility




  • [SONARJAVA-3324] - FP in S2970 when using JUnit 5 Soft assertions extension.
  • [SONARJAVA-3357] - S1452: java Collectors second parameter should be excluded
  • [SONARJAVA-3358] - S1604: don't report method with annotations
  • [SONARJAVA-3375] - FP S2973(EscapedUnicodeCharactersCheck) with Unicode Whitespaces
  • [SONARJAVA-3378] - FP in S1612 when lambda argument is a subtype of ambiguous method parameter

Edit/Copy Release Notes

The text area below allows the project release notes to be edited and copied to another document.