Skip to content

8.44.0.48651

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Sep 15:24
Immutable release. Only release title and notes can be modified.
98c1e25

Release notes - SonarJava - 8.44

Feature

SONARJAVA-6775 Create rule S9403: "Arrays.fill()" should not be called with an incompatible value type
SONARJAVA-6777 Create rule S9401: IdentityHashMap keys should not be boxed primitive types
SONARJAVA-6778 Create rule S9393: "Duration.get()" should only be called with SECONDS or NANOS
SONARJAVA-6844 Create rule S9394: "contentEquals()" should be used instead of "equals()" for "CharSequence" comparisons
SONARJAVA-6845 Create rule S9404: "Optional" should not wrap collections, maps, or arrays (non Sonar way)
SONARJAVA-6847 Create rule S9402: require ordering for sorted collections
SONARJAVA-6848 Create rule S9400: Method references not fulfilling the "Comparator" contract should not be used as comparators
SONARJAVA-6939 Make rule java:s4426 configurable
SONARJAVA-6941 Create rule S9388: TestNG data provider methods should return valid types
SONARJAVA-6942 Create rule S9389: Data provider names should be unique within a class
SONARJAVA-6943 Create rule S9386: Float literals should be used instead of casting double literals to float
SONARJAVA-6944 Create rule S9387: TestNG Javadoc tags should be converted to annotations
SONARJAVA-6950 Create rule S9392: Redundant range checks should be removed
SONARJAVA-6951 Create rule S9390: Manual null checks should be replaced with "Objects.equals()"
SONARJAVA-6952 Create rule S9391: Loops should use Stream API when performing filter, map, or collect operations
SONARJAVA-6967 Create rule S9396: Inner class fields should not shadow outer class fields
SONARJAVA-6968 Create rule S9398: Inner classes should not be declared inside interfaces
SONARJAVA-6969 Create rule S9399: Instance fields should not be guarded by static locks (non Sonar way)
SONARJAVA-6970 Create rule S9397: "String.format()" should not be used when simpler alternatives exist
SONARJAVA-6971 Create rule S9395: Numeric values should be explicitly cast when assigned to narrower types
SONARJAVA-7001 Create rule S9366: Duration conversions should agree with the supplied TimeUnit
SONARJAVA-7003 Create rule S3037: Constructors should not access uninitialized values
SONARJAVA-7004 Create rule S3949: Calculations should not overflow (non Sonar way)
SONARJAVA-7044 Create rule S9411: Loops that transform list elements should use "List.replaceAll()"

False Positive

SONARJAVA-6999 Fix FP on S9148 case where difference is used in combination with Float.compare

False Negative

SONARJAVA-7002 Fix FN in S2123: detect discarded postfix increments in expression-bodied lambdas

Maintenance

SONARJAVA-6946 Update SonarSource/sonar-scanner-engine monorepo to v13.12.0.5977
SONARJAVA-6949 Prepare next development iteration 8.44.0
SONARJAVA-6955 Update dependency jdx/mise to v2026.9.2
SONARJAVA-6959 Update dependency jdx/mise to v2026.9.3
SONARJAVA-6964 Update SonarSource/parent-oss monorepo to v11.10.0.86299
SONARJAVA-6972 fix: clear safeSymbols to prevent memory leak
SONARJAVA-6975 Update dependency jdx/mise to v2026.9.4
SONARJAVA-6988 Update dependency jdx/mise to v2026.9.5
SONARJAVA-6989 Update dependency org.apache.tomcat.embed:tomcat-embed-jasper to v9.0.122
SONARJAVA-6990 Update astral-sh/setup-uv action to v10.1.0
SONARJAVA-7007 Update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.2
SONARJAVA-7008 Update dependency org.codehaus.mojo:exec-maven-plugin to v3.6.4
SONARJAVA-7010 Update SonarSource/sonar-scanner-engine monorepo to v13.13.0.6016
SONARJAVA-7013 Update dependency jdx/mise to v2026.9.6
SONARJAVA-7020 Update dependency jdx/mise to v2026.9.7
SONARJAVA-7023 Update dependency jdx/mise to v2026.9.9
SONARJAVA-7028 Update SonarSource/sonar-analyzer-commons monorepo to v2.33.0.5369
SONARJAVA-7033 Update dependency jdx/mise to v2026.9.10
SONARJAVA-7035 Fix the quality gate
SONARJAVA-7037 Update dependency jdx/mise to v2026.9.11
SONARJAVA-7040 Fix S9396 issues
SONARJAVA-7041 Fix S9391 issues
SONARJAVA-7050 Fix the quality gate
SONARJAVA-7058 Update rule metadata