Repository navigation
Conversation
gyanranjanpanda
requested review from
SebastienDegodez,
lbroudoux and
yada
as code owners
May 9, 2026 19:06
gyanranjanpanda
force-pushed
the
fix/issue-2058-sonar-quality-batch1
branch
2 times, most recently
from
May 9, 2026 19:26
1a18df7 to
034324d
Compare
Contributor
Author
|
Thanks for the context. I realized this PR is for #2058, not #2110. I updated the wording from "Closes" to "Refs" because #2058 is an umbrella issue. I also removed the following changes that overlap with existing PRs:
The remaining 8-file diff is now focused on non-duplicated code smells: empty method comments (S1186), switch fall-through fix (S128), replaceAll → replace (S5361), duplicate literal constant (S1192), and System.err → SLF4J logger. |
gyanranjanpanda
force-pushed
the
fix/issue-2058-sonar-quality-batch1
branch
from
May 9, 2026 19:32
034324d to
3c7eafa
Compare
Address multiple SonarCloud code smells: - S1186: Add explanatory comments to intentionally empty methods (CorsFilter, StaticResourcesFilter, GenericResourceServiceDTO, WebSocketClient) - S128: Fix switch fall-through in AvroUtil.validate() - S5361: Replace replaceAll() with replace() in PostmanUtil (no regex needed for literal replacement) - S1192: Use MODEL_KEY_CONFIG constant instead of duplicated 'model' literal in OpenAICopilot - Replace System.err.println with SLF4J logger in TraceUtil Refs microcks#2058 Signed-off-by: Gyan Ranjan Panda <[email protected]>
gyanranjanpanda
force-pushed
the
fix/issue-2058-sonar-quality-batch1
branch
from
May 9, 2026 19:45
3c7eafa to
6673ee7
Compare
Signed-off-by: Gyan Ranjan Panda <[email protected]>
Contributor
Author
|
could @lbroudoux review this waiting for your feed back |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses a focused set of SonarCloud code smells as part of #2058. All changes are mechanical, zero-behavioral-impact transformations.
Changes (9 files)
replaceAll()withreplace()(no regex needed)System.err.printlnwith SLF4J logger (full stack trace)Risk Assessment
Low risk — All changes are comment additions, API substitutions (
replaceAll→replace,System.err→log.error), constant reuse, explicit control flow that was already implicit, and a CI-enforced formatting fix.Note
Spotless verification passed locally via commit hook, but full tests could not be run locally because the project targets Java 25 and only Java 17 is available.
Refs #2058