Skip to content

ServerResource: lower the cognitive complexity of doConditionalHandle (#1753 follow-up) - #1760

Merged
thboileau-git merged 1 commit into
2.7from
fix/1753-write-only-conditional-put-sonar-2.7
Nov 29, 2026
Merged

thboileau-git merged 1 commit into
2.7from
fix/1753-write-only-conditional-put-sonar-2.7

Conversation

@thboileau-git

Copy link
Copy Markdown
Collaborator

Follow-up of #1758 (#1753). No behaviour change.

Sonar java:S3776 on ServerResource.doConditionalHandle(): the cognitive complexity went from 15 to 16 (15 allowed) with the #1753 change. The retrieval of the validators and the evaluation of the preconditions of an existing resource move to a private helper, retrieveValidatorsAndEvaluate().

The same follow-up is in the 3.0 PR #1757. Not applied on 2.6 (Sonar is not enforced there).

🤖 Generated with Claude Code

…cognitive complexity (#1753)

Sonar S3776 on doConditionalHandle() (16 for 15 allowed) after the #1753 change.
No behaviour change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@thboileau-git
thboileau-git merged commit 640d952 into 2.7 Nov 29, 2026
6 checks passed
@thboileau-git
thboileau-git deleted the fix/1753-write-only-conditional-put-sonar-2.7 branch November 29, 2026 16:51
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.

2 participants