Skip to content

refactor(writer): name the OnPair scan counter's method apart from its field - #585

Merged
dfa1 merged 1 commit into
mainfrom
fix/sonar-s1845
Oct 20, 2026
Merged

dfa1 merged 1 commit into
mainfrom
fix/sonar-s1845

Conversation

@dfa1

@dfa1 dfa1 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Fixes the only blocker-severity issue on main before 0.18.0: Sonar java:S1845 in OnPairEncodingEncoder. Its private Threshold class had both a field and a method named scanned. The method, which counts scanned bytes and reports when the budget is used up, is now scan.

The rename is private, so behavior is unchanged; the OnPair tests pass.

🤖 Generated with Claude Code

…s field

Sonar java:S1845 (blocker severity): Threshold had both a field and a method
named scanned. The method, which counts bytes and reports the exhausted
budget, is now scan.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dfa1
dfa1 merged commit 82bfbb4 into main Oct 20, 2026
9 checks passed
@dfa1
dfa1 deleted the fix/sonar-s1845 branch October 20, 2026 17:10
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