Skip to content

Fix the Sonar findings of the last day's merges - #582

Merged
dfa1 merged 4 commits into
mainfrom
fix/sonar-afterall
Oct 20, 2026
Merged

dfa1 merged 4 commits into
mainfrom
fix/sonar-afterall

Conversation

@dfa1

@dfa1 dfa1 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Fixes the one bug failing the Sonar quality gate, plus the 8 issues the analysis of bc4a36da found in yesterday's merges (#573, #574, #576, #580). One commit per area:

No behavior change. ./mvnw verify passes (9204 tests). The fuzz seed corpus is unchanged.

🤖 Generated with Claude Code

dfa1 and others added 4 commits October 20, 2026 08:33
JUnit does not order several @afterall methods of one class (Sonar
java:S8745, the one bug failing the quality gate). Both derive their corpus
from the scan seeds and do not depend on each other, so one @afterall now
calls them in a fixed order.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sonar java:S2234 (compareGain called with its arguments swapped) and
java:S135 (a break and a continue in one loop) in TrainingGeneration's top
selection. Collections.reverseOrder states the order, and claimSlot leaves
the loop a single condition; the selected symbols are unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sonar java:S107: the private Chunk constructor #574 added took 8
parameters. The arena is only ever released on close, and a slice must never
release its parent's, so a slice now passes no arena instead of an ownsArena
flag. Also java:S5778 in ChunkLazyDecodeTest: the column name is built
outside the lambda that must throw.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sonar findings on the dictionary filter of #576 and #580: java:S1168 twice
(matchBits and codeTable returned a null array), java:S125 (a test comment
read as commented-out code) and java:S9358 (a conditional around two calls
of one method in the interop oracle).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dfa1
dfa1 merged commit 1018db1 into main Oct 20, 2026
9 checks passed
@dfa1
dfa1 deleted the fix/sonar-afterall branch October 20, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant