Skip to content

Releases

9.0.0.60184

Choose a tag to compare

@github-actions github-actions released this 27 Nov 09:30
Immutable release. Only release title and notes can be modified.
0f9e027

Release notes - SONARJAVA - 9.0

False Positive

JAVA-6615 S4502 (java) should not raise when the app is stateless with token-based auth
JAVA-6762 S2077 (java) should not raise on identifiers sanitized via Statement.enquoteIdentifier() before concatenation
JAVA-7025 S2077 (java) should not raise when only literal clause fragments are concatenated and all data values are bound
JAVA-7030 S4684 (java) should support a rule parameter declaring annotations/types resolved from server-side context
JAVA-7265 S4790 (java) should not raise on SHA-1 used to build a name-based UUID version 5
JAVA-7307 Fix S1854 false positives on record compact constructor parameters
JAVA-7333 java:S1105 false positive on generic record declarations
JAVA-7343 S8696 raises issues on enum types
JAVA-7350 S5542 (java) should not raise on "AESWrap" and "AESWrapPad" transformations

False Negative

JAVA-7280 False negative java:S3626: a redundant return inside a lambda body is not reported
JAVA-7282 False negative java:S2168: not reported when the outer null check is written !(helper != null)
JAVA-7290 False negative java:S1854: a dead store inside a lambda body is not reported

Maintenance

JAVA-7258 Update jdx/mise-action action to v5.2.3
JAVA-7264 Prepare next development iteration 8.47.0
JAVA-7266 Update qos-ch/logback monorepo to v1.6.6
JAVA-7267 Update dependency org.jacoco:org.jacoco.agent to v0.8.16
JAVA-7270 Update jdx/mise-action action to v5.2.4
JAVA-7289 Update astral-sh/setup-uv action to v10.3.3
JAVA-7295 Decouple the frontend AST from Eclipse JDT core
JAVA-7296 Update SonarSource/sonar-scanner-engine monorepo to v13.18.0.6805
JAVA-7297 Decouple Problems and Warnings from Eclipse JDT core specifics
JAVA-7298 Update dependency com.sonarsource.scanner.integrationtester:sonar-scanner-integration-tester to v1.6.0.1436
JAVA-7299 Update SonarSource/sonarqube monorepo to v26.11.0.134175
JAVA-7300 Decouple the Sonar Java frontend from Eclipse JDT core
JAVA-7303 Update Sonar JDT
JAVA-7305 Update jdx/mise-action action to v5.2.5
JAVA-7309 Update SonarSource/parent-oss monorepo to v12.3.0.87938
JAVA-7313 Update dependency com.google.guava:guava to v33.8.0
JAVA-7315 Update jdx/mise-action action to v5.2.6
JAVA-7318 Update SonarSource/sonar-plugin-api monorepo to v14.3.0.5639
JAVA-7322 Update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.7.0
JAVA-7323 Update dependency org.codehaus.mojo:license-maven-plugin to v2.8.0
JAVA-7324 Update SonarSource/sonar-scanner-engine monorepo to v13.19.0.6869
JAVA-7329 Update jdx/mise-action action to v5.2.7
JAVA-7331 Update dependency commons-logging:commons-logging to v99
JAVA-7336 Update the code owners of Sonar Java
JAVA-7338 Update SonarSource/sonar-analyzer-commons monorepo to v2.36.0.15632
JAVA-7341 Simplify the parser interface
JAVA-7342 Update dependency org.apache.commons:commons-lang3 to v3.22.0
JAVA-7345 Update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.8.0
JAVA-7346 Update dependency org.codehaus.mojo:exec-maven-plugin to v3.7.0
JAVA-7348 Update dependency org.apache.tomcat.embed:tomcat-embed-jasper to v9.0.124
JAVA-7349 Update dependency org.codehaus.mojo:license-maven-plugin to v2.9.0
JAVA-7357 Undo 'Update dependency commons-logging:commons-logging to v99'
JAVA-7359 Update dependency com.sonarsource.scanner.integrationtester:sonar-scanner-integration-tester to v1.7.0.11463
JAVA-7361 Update jdx/mise-action action to v5.2.8
JAVA-7366 Fix the quality gate
JAVA-7367 Update the Slack notification channel
JAVA-7368 Prepare next development iteration 9.0.0-SNAPSHOT
JAVA-7370 Update qos-ch/logback monorepo to v1.6.7
JAVA-7371 Update SonarSource/parent-oss monorepo to v12.4.0.88193
JAVA-7372 Update SonarSource/sonar-analyzer-commons monorepo to v2.37.0.15708
JAVA-7376 Update jdx/mise-action action to v5.2.9
JAVA-7382 Fix S1128 FPs when --release option shadows non-public members of JDK
JAVA-7383 Add a static helper parsing method for single files
JAVA-7384 Update SonarSource/sonar-scanner-engine monorepo to v13.20.0.7027
JAVA-7387 Update jdx/mise-action action to v5.2.10
JAVA-7389 Update SonarSource/sonar-scanner-engine monorepo to v13.21.0.7037
JAVA-7391 Update dependency org.springframework:spring-expression to v7.1.0
JAVA-7415 Delete static/documentation.md
JAVA-7417 Update rule metadata

8.46.0.59609

Choose a tag to compare

@github-actions github-actions released this 29 Oct 14:07
Immutable release. Only release title and notes can be modified.
c6934e1

Release notes - SonarJava - 8.46

Feature

SONARJAVA-7225 Update RSPEC before 8.46 release

False Positive

SONARJAVA-6383 FP on S2077: when using empty string, conditional operators or integer constants
SONARJAVA-7215 S2695: Treat an unresolved query fragment as an unknown parameter count instead of zero
SONARJAVA-7227 S1905: Preserve casts documenting potentially lossy widening conversions required by S9395
SONARJAVA-7238 Improve S9395: Numeric values should be explicitly cast when assigned to narrower types
SONARJAVA-7239 Improve S9357 Anonymous classes on functional interfaces should be lambdas
SONARJAVA-7240 Improve S9398: Inner classes should not be declared inside interfaces
SONARJAVA-7241 Improve S9358: Conditional expressions should not duplicate operations in both branches
SONARJAVA-7242 Improve S9149: Static methods should not hide methods from superclasses
SONARJAVA-7243 Improve S8989: Methods with "@transactional" should specify rollback behavior for checked exceptions

Bug

SONARJAVA-7228 ExpressionUtils.resolveAsConstant renders a char constant as its numeric value when folding a string concatenation
SONARJAVA-7253 Spring context model files are created unconditionally after every analysis

Maintenance

SONARJAVA-7224 Update SonarSource/sonar-analyzer-commons monorepo to v2.34.0.15495
SONARJAVA-7226 Prepare next development iteration 8.46.0
SONARJAVA-7230 Update SonarSource/parent-oss monorepo to v12.2.0.87867
SONARJAVA-7233 Update jdx/mise-action action to v5.2.1
SONARJAVA-7244 Update jdx/mise-action action to v5.2.2
SONARJAVA-7245 Update SonarSource/sonar-analyzer-commons monorepo to v2.35.0.15509
SONARJAVA-7248 Update astral-sh/setup-uv action to v10.3.1
SONARJAVA-7249 Update SonarSource/sonar-scanner-engine monorepo to v13.17.0.6738
SONARJAVA-7250 Update dependency org.springframework:spring-expression to v7.0.10
SONARJAVA-7251 Update astral-sh/setup-uv action to v10.3.2
SONARJAVA-7257 Update dependency com.google.code.gson:gson to v2.15.0
SONARJAVA-7261 Update rule metadata

8.45.0.59462

Choose a tag to compare

@github-actions github-actions released this 22 Oct 13:25
Immutable release. Only release title and notes can be modified.
5e7da5f

Release notes - SonarJava - 8.45

Feature

SONARJAVA-4606 S7158: Simplify checks for empty/not-empty and blank/not-blank strings
SONARJAVA-6410 Create SpringContextModel and related classes: big feature come to life. Includes creating new rule S9352 and improving existing rule S4605, as well as sending telemetry.
SONARJAVA-6419 Change existing Visitor for S4605 to work for cross-module case
SONARJAVA-6421 Implement new rule S9352 "Use @qualifier or @primary to resolve autowiring ambiguity" for cross-module case
SONARJAVA-7006 Record telemetry about Spring usage
SONARJAVA-7043 Create rule S9412: "Collections.sort()" should not be used
SONARJAVA-7070 Create rule S9413: Redundant "String.format" should be removed when native formatting is available
SONARJAVA-7097 Remove S9397 from SonarWay
SONARJAVA-7151 Add S1314 in SonarWay
SONARJAVA-7152 Add S1695 to SonarWay "NullPointerException" should not be thrown manually
SONARJAVA-7153 Create rule S9427: Java assert statements should not be used in test code
SONARJAVA-7154 Create rule S9428: MessageDigest instances should not be stored as fields
SONARJAVA-7155 Create rule S9433: Literals should not be converted to strings using empty string concatenation
SONARJAVA-7161 Create rule S9434: Qualified "this" should not be used when the unqualified form is enough
SONARJAVA-7162 Create rule S9435: Ternary operator conditions should not be negated
SONARJAVA-7163 Create rule S9436: Classes should not declare more than one logger
SONARJAVA-7164 Create rule S9437: "getInstance()" methods should not return a new instance on every call
SONARJAVA-7167 Create rule S9438: Private fields that are never reassigned after construction should be declared "final"
SONARJAVA-7170 Create rule S9439: Array initializers should use the shorthand form instead of an explicit "new" array creation
SONARJAVA-7182 Replace the streams that cause most allocations in Sonar Java with loops
SONARJAVA-7189 Avoid allocating capturing lambdas in JSema on cache hits

False Positive

SONARJAVA-6438 S4790: do not raise when a weak-hash digest is fed bytes read from a file-like source
SONARJAVA-7073 S2077: Don't flag SQL built with Class#getName()/getSimpleName()/getCanonicalName()/getTypeName() as dynamically formatted
SONARJAVA-7213 S5128 FP: @Valid on an overridden interface method parameter is ignored

False Negative

SONARJAVA-6461 S2245 heuristic: identifier tokenizer misses digit-suffixed crypto acronyms
SONARJAVA-7188 FN java:S7158: length() == 0x0 not detected, only decimal length() == 0

Maintenance

SONARJAVA-6365 Explore better testing solutions
SONARJAVA-6899 Onboard sonar-java onto the PVF
SONARJAVA-6976 Clear check state after file analysis
SONARJAVA-7061 Update SonarSource/sonar-scanner-engine monorepo to v13.14.0.6149
SONARJAVA-7062 Update dependency jdx/mise to v2026.9.12
SONARJAVA-7063 Update SonarSource/parent-oss monorepo to v12
SONARJAVA-7066 Update dependency de.thetaphi:forbiddenapis to v3.11
SONARJAVA-7067 Update astral-sh/setup-uv action to v10.2.0
SONARJAVA-7068 Update dependency org.slf4j:slf4j-api to v2.0.20
SONARJAVA-7078 Update dependency org.sonarsource.parent:parent to v88
SONARJAVA-7082 Update dependency com.sonarsource.scanner.integrationtester:sonar-scanner-integration-tester to v1.2.0.1354
SONARJAVA-7084 Update mockito/mockito monorepo to v5.24.0
SONARJAVA-7086 Update SonarSource/parent-oss monorepo to v12.0.1.87460
SONARJAVA-7088 Filter unskippable scanners in incremental analysis by dependency version
SONARJAVA-7089 Do not throw exception on cache misses in checks
SONARJAVA-7092 Update dependency jdx/mise to v2026.9.13
SONARJAVA-7093 Update qos-ch/logback monorepo to v1.6.4
SONARJAVA-7096 Fix the QG: replace Collections.sort with List.sort
SONARJAVA-7098 Update SonarSource/parent-oss monorepo to v12.0.2.87499
SONARJAVA-7100 Update dependency jdx/mise to v2026.9.14
SONARJAVA-7101 Update dependency org.apache.commons:commons-lang3 to v3.21.0
SONARJAVA-7102 Update SonarSource/sonar-plugin-api monorepo to v14.1.0.5543
SONARJAVA-7114 Drop pluginApiMinVersion
SONARJAVA-7115 Update dependency jdx/mise to v2026.9.15
SONARJAVA-7116 Update dependency com.sonarsource.scanner.integrationtester:sonar-scanner-integration-tester to v1.3.0.1396
SONARJAVA-7121 Update dependency jdx/mise to v2026.9.16
SONARJAVA-7124 Update jdx/mise-action action to v5
SONARJAVA-7125 Update dependency com.google.guava:guava to v33.7.2-jre
SONARJAVA-7128 Update dependency jdx/mise to v2026.9.17
SONARJAVA-7129 Update SonarSource/sonar-scanner-engine monorepo to v13.15.0.6376
SONARJAVA-7130 Update SonarSource/sonarqube monorepo to v26.10.0.132816
SONARJAVA-7131 Update dependency jdx/mise to v2026.9.18
SONARJAVA-7133 Update qos-ch/logback monorepo to v1.6.5
SONARJAVA-7135 Update jdx/mise-action action to v5.0.1
SONARJAVA-7141 Update dependency jdx/mise to v2026.10.0
SONARJAVA-7144 Update jdx/mise-action action to v5.1.0
SONARJAVA-7146 Add mandatory rule delivery workflow to the new-rule skill
SONARJAVA-7147 Update SonarSource/parent-oss monorepo to v12.1.0.87730
SONARJAVA-7149 Update jdx/mise-action action to v5.1.1
SONARJAVA-7168 Update SonarSource/sonarqube monorepo to v26.10.0.133078
SONARJAVA-7169 Update actions/upload-artifact action to v7.0.2
SONARJAVA-7172 Update dependency org.apache.tomcat.embed:tomcat-embed-jasper to v9.0.123
SONARJAVA-7179 Update dependency com.tngtech.archunit:archunit-junit5 to v1.5.1
SONARJAVA-7180 Tighten new-rule skill on samples, tests and implementation
SONARJAVA-7181 Fix the quality gate
SONARJAVA-7184 Update SonarSource/parent-oss monorepo to v12.1.1.87771
[SONARJAVA-7185](https://sonarsource.atlassian.net/browse...

Read more

8.44.0.48651

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

8.43.0.47668

Choose a tag to compare

@github-actions github-actions released this 11 Sep 13:37
Immutable release. Only release title and notes can be modified.
8bb3c54

Release notes - SonarJava - 8.43

False Positive

SONARJAVA-6673 Fix FPs for java:S1602

Maintenance

SONARJAVA-6928 Update dependency org.slf4j:slf4j-api to v2.0.19
SONARJAVA-6929 Update SonarSource/sonar-analyzer-commons monorepo to v2.32.0.5319
SONARJAVA-6932 Update SonarSource/sonar-scanner-engine monorepo to v13.11.0.5929
SONARJAVA-6938 Prepare next development iteration 8.43.0
SONARJAVA-6940 Update rule metadata

8.42.0.47616

Choose a tag to compare

@github-actions github-actions released this 10 Sep 09:30
Immutable release. Only release title and notes can be modified.
e321be6

Release notes - SonarJava - 8.42

Feature

SONARJAVA-6868 Update RSPEC before 8.42 release
SONARJAVA-6906 Improve rule S8924: raise only when the usage is inconsistent

False Positive

SONARJAVA-6256 S6832 should not raise when the injected bean's scope is ScopedProxyMode.TARGET_CLASS
SONARJAVA-6660 S2229 FP: self-invocation inside a TransactionTemplate callback flagged despite an active programmatic transaction
SONARJAVA-6833 Fix false positives for java:S2699 "Tests should include assertions"
SONARJAVA-6870 Improve S9342 Archive entries should not be empty
SONARJAVA-6874 Fix FP on S9351: "BigDecimal.compareTo()" should be used instead of "equals()" for numerical comparison
SONARJAVA-6876 S2479 Reduce noise by suppressing on strings that are most likely generated
SONARJAVA-6892 Fix FP in S8989 for cases where no transaction actually occurs
SONARJAVA-6898 Fix FPs on S5786 and S5810: stop raising issues for public / protected test classes

False Negative

SONARJAVA-6888 Extend S9133 Predefined mathematical constants should be used instead of hard-coded approximations

Bug

SONARJAVA-5397 Custom Checkstyle issues are not imported
SONARJAVA-6912 S6829 should recognize @Inject constructors in Spring components

Maintenance

SONARJAVA-6687 Add exception for BigDecimal String constructor to the rule java:S2129 description
SONARJAVA-6869 Prepare next development iteration 8.42.0
SONARJAVA-6875 Update SonarSource/sonar-scanner-engine monorepo to v13.10.0.4657
SONARJAVA-6877 Update dependency jdx/mise to v2026.8.11
SONARJAVA-6881 Update jdx/mise-action action to v4.3.0
SONARJAVA-6885 Update dependency jdx/mise to v2026.8.14
SONARJAVA-6886 Update SonarSource/sonar-plugin-api monorepo to v14
SONARJAVA-6890 Update SonarSource/sonarqube monorepo to v26.9.0.129388
SONARJAVA-6891 Remove redundant logging dependency handling
SONARJAVA-6895 Update SonarSource/sonar-analyzer-commons monorepo to v2.31.0.5284
SONARJAVA-6900 Update dependency org.sonarsource.orchestrator:sonar-orchestrator-junit4 to v6.4.3.4676
SONARJAVA-6901 Update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.16.0
SONARJAVA-6904 Update dependency jdx/mise to v2026.8.15
SONARJAVA-6909 Update dependency jdx/mise to v2026.9.0
SONARJAVA-6913 Update dependency jdx/mise to v2026.9.1
SONARJAVA-6935 Update rule metadata

8.41.0.47177

Choose a tag to compare

@github-actions github-actions released this 28 Aug 07:02
Immutable release. Only release title and notes can be modified.
6860592

Release notes - SonarJava - 8.41

Feature

SONARJAVA-4647 java:S120: Update the location where the rule is raising an issue
SONARJAVA-6304 Create rule S8218: Instant APIs should only use supported temporal units
SONARJAVA-6780 Create rule S9354: "Comparable.compareTo()" and "Comparator.compare()" should not use subtraction on numerical fields
SONARJAVA-6783 Create rule S9345: Classes with throwing constructors should be protected against Finalizer attacks
SONARJAVA-6786 Create rule S9346: Integer values should not be cast to long for use as timestamps
SONARJAVA-6788 Create rule S9361: Duplicate keys or elements should not be passed to immutable collection factory methods
SONARJAVA-6818 Update RSPEC before 8.41 release
SONARJAVA-6823 Port rule S909: "continue" should not be used in loops
SONARJAVA-6824 Create rule S9358: Conditional expressions should not duplicate operations in both branches
SONARJAVA-6826 Create rule S9359: Octal escape sequences should not be followed by digits
SONARJAVA-6827 Create rule S9357: Anonymous classes on functional interfaces should be lambdas
SONARJAVA-6839 Create rule S9362: hashCode() and equals() should use consistent fields
SONARJAVA-6840 Create rule S9363: Invalid time-zone IDs should not silently fall back to GMT
SONARJAVA-6842 Create rule S9364: Local variables should not span switch case groups
SONARJAVA-6843 Create rule S9365: Copy constructors should initialize all fields

False Positive

SONARJAVA-6820 S9355: ignore Eclipse (non-Javadoc) override comments
SONARJAVA-6838 S9354: ignore subtraction of operands with a provably bounded range
SONARJAVA-6853 S3329: Fix false positive when cipher.init uses a non-final variable initialized to DECRYPT_MODE

Maintenance

SONARJAVA-6819 Prepare next development iteration 8.41.0
SONARJAVA-6828 Add AGENTS.md to provide guidance to agents making changes to rules
SONARJAVA-6829 Update dependency com.google.guava:guava to v33.7.0-jre
SONARJAVA-6831 Update dependency jdx/mise to v2026.8.8
SONARJAVA-6837 Update dependency com.google.guava:guava to v33.7.1-jre
SONARJAVA-6849 Update dependency jdx/mise to v2026.8.9
SONARJAVA-6850 Fix SonarQube QG
SONARJAVA-6851 Update dependency org.springframework:spring-expression to v7.0.9
SONARJAVA-6852 Update SonarSource/sonar-scanner-engine monorepo to v13.9.0.4593
SONARJAVA-6858 Update dependency jdx/mise to v2026.8.10
SONARJAVA-6860 Upgrade the minimum Java version to 21
SONARJAVA-6862 Update rule metadata
SONARJAVA-6864 Fix all 60 open SonarQube issues on master
SONARJAVA-6866 Fix S9358: Move conditional expressions inside operations

8.40.0.46617

Choose a tag to compare

@github-actions github-actions released this 20 Aug 13:44
Immutable release. Only release title and notes can be modified.
1d49236

Release notes - SonarJava - 8.40

Feature

SONARJAVA-6721 Extend rule S2442: Intrinsic locks should not be used on "java.util.concurrent" objects
SONARJAVA-6722 Create rule S9142: Expensive compilation or preparation operations should not be performed inside loops
SONARJAVA-6754 Update RSPEC before 8.40 release
SONARJAVA-6767 Create rule S9341: Redundant Spring annotations should be removed
SONARJAVA-6768 Port S7438: Incompatible bit masks should not be used in comparisons
SONARJAVA-6769 Create rule S9342: Archive entries should not be empty
SONARJAVA-6770 Provide a reusable aggressive heuristic to identify Java test files
SONARJAVA-6781 Create rule S9344: Bitwise AND operations with zero should be corrected
SONARJAVA-6782 S9355: use Javadoc syntax for almost-Javadoc comments
SONARJAVA-6787 S9351: "BigDecimal.compareTo()" should be used instead of "equals()" for numerical comparison
SONARJAVA-6789 S9353: disallow unescaped '.' as a regex literal
SONARJAVA-6790 S9350: equals() implementations should not compare mismatched members

False Positive

SONARJAVA-6455 S7467: FP on broken semantics
SONARJAVA-6756 Fix FPs is S8989, NOT_SUPPORTED and readOnly clusters
SONARJAVA-6757 Fix FP in S9149 in the case of Intentional Hiding with Deprecation Annotations
SONARJAVA-6758 Fix FPs in S5673, redundant annotations and controllers without mapping clusters and improve RSPEC

Maintenance

SONARJAVA-6730 Update dependency jdx/mise to v2026.8.0
SONARJAVA-6735 Update SonarSource/sonar-plugin-api monorepo to v13.10.0.4437
SONARJAVA-6746 Update SonarSource/sonar-scanner-engine monorepo to v13.7.0.4455
SONARJAVA-6748 Update dependency org.junit:junit-bom to v6.1.3
SONARJAVA-6749 Update SonarSource/sonar-analyzer-commons monorepo to v2.30.0.5193
SONARJAVA-6753 Update dependency org.sonarsource.orchestrator:sonar-orchestrator-junit4 to v6.4.1.4618
SONARJAVA-6755 Prepare next development iteration 8.40.0
SONARJAVA-6759 Ensure S1244 and S9147 do not overlap
SONARJAVA-6766 Update SonarSource/parent-oss monorepo to v11.9.0.86162
SONARJAVA-6773 Update astral-sh/setup-uv action to v10
SONARJAVA-6792 Use imported tree type names in transactional exception check
SONARJAVA-6793 Update dependency org.apache.tomcat.embed:tomcat-embed-jasper to v9.0.121
SONARJAVA-6794 Update dependency org.sonarsource.orchestrator:sonar-orchestrator-junit4 to v6.4.2.4626
SONARJAVA-6795 Update SonarSource/sonar-plugin-api monorepo to v13.11.0.4459
SONARJAVA-6797 Update jdx/mise-action action to v4.2.5
SONARJAVA-6803 Update astral-sh/setup-uv action to v10.0.1
SONARJAVA-6805 Fix QG: Move regex patterns outside of loop
SONARJAVA-6806 Update SonarSource/sonar-scanner-engine monorepo to v13.8.0.4534
SONARJAVA-6807 Update dependency jdx/mise to v2026.8.6
SONARJAVA-6815 Update rule metadata
SONARJAVA-6816 Fix a javadoc comment
SONARJAVA-6817 Update expected Agentic Way profile count

8.39.0.46279

Choose a tag to compare

@github-actions github-actions released this 13 Aug 13:49
Immutable release. Only release title and notes can be modified.
e931ac9

Release notes - SonarJava - 8.39

Feature

SONARJAVA-6737 Update RSPEC before 8.39 release
SONARJAVA-6741 Create rule S9149: Static methods should not hide methods from superclasses
SONARJAVA-6742 Create rule S9146: Apache XML RPC extensions should not be enabled
SONARJAVA-6743 Create rule S9147: "NaN" should not be tested for equality using "==" or "!="
SONARJAVA-6744 Create rule S9148: "Float.compare" or "Double.compare" should be used for floating-point comparisons

False Positive

SONARJAVA-6384 FP on S2160 when using Apache commons lang EqualsBuilder.reflectionEquals

Maintenance

SONARJAVA-6738 Prepare next development iteration 8.39.0
SONARJAVA-6751 Update rule metadata
SONARJAVA-6752 Implement verifyIssueOnProject in JavaCheckVerifier and modernize MissingPackageInfoCheckTest

8.38.0.46176

Choose a tag to compare

@github-actions github-actions released this 07 Aug 14:21
Immutable release. Only release title and notes can be modified.
227d108

Release notes - SonarJava - 8.38

Feature

SONARJAVA-5917 Raise content hash cache misses log messages to debug level
SONARJAVA-6686 Implement S2198: Unnecessary mathematical comparisons
SONARJAVA-6695 Create rule S9130: Stream read results should be checked for -1 before casting
SONARJAVA-6699 Update RSPEC before 8.38 release
SONARJAVA-6703 Create rule S9133: Predefined mathematical constants should be used instead of hard-coded approximations
SONARJAVA-6704 Create rule S9132: "ScheduledThreadPoolExecutor.setMaximumPoolSize" should not be called

False Positive

SONARJAVA-6696 Improve S8989: should not raise on private methods
SONARJAVA-6707 S8975 should not raise in tests
SONARJAVA-6711 USER-2405 Fix S3252 false positive for Quarkus Panache entity static methods
SONARJAVA-6714 S2638 should not raise on type arguments when overriding a method with @nullable return type from a @NullMarked class

False Negative

SONARJAVA-6713 S2696: false negative when static field write target is wrapped in parentheses
SONARJAVA-6716 S8909: False negative on public classes with explicit constructors but no no-arg constructor

Bug

SONARJAVA-5646 Files are incorrectly skipped by incremental analysis when the base branch does not have a cache

Maintenance

SONARJAVA-6430 Centralize Tree.Kind class types
SONARJAVA-6431 Centralize Tree.Kind assignment types
SONARJAVA-6674 Update SonarSource/sonar-plugin-api monorepo to v13.9.0.4428
SONARJAVA-6677 Update actions/checkout action to v7.0.1
SONARJAVA-6681 Update dependency jdx/mise to v2026.7.11
SONARJAVA-6682 Update astral-sh/setup-uv action to v9
SONARJAVA-6684 Update dependency org.sonarsource.orchestrator:sonar-orchestrator-junit4 to v6.4.0.4572
SONARJAVA-6691 Update jdx/mise-action action to v4.2.2
SONARJAVA-6698 Update SonarSource/parent-oss monorepo to v11.8.0.86067
SONARJAVA-6700 Prepare next development iteration 8.38.0
SONARJAVA-6702 Update actions/stale action to v11
SONARJAVA-6708 Update SonarSource/sonar-scanner-engine monorepo to v13.6.0.4299
SONARJAVA-6715 Update dependency jdx/mise to v2026.7.17
SONARJAVA-6718 Update dependency jdx/mise to v2026.7.18
SONARJAVA-6719 Update SonarSource/sonar-scanner-engine monorepo to v13.6.1.4395
SONARJAVA-6720 Update dependency org.sonarsource.sonarqube:sonar-testing-harness to v26.8.0.126808
SONARJAVA-6728 Update jdx/mise-action action to v4.2.4
SONARJAVA-6734 Update rule metadata
SONARJAVA-6736 Remove S6541 from profile