You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "orpiske (via GitHub)" <gi...@apache.org> on 2026/03/27 15:58:51 UTC

[PR] (chores): fix SonarCloud S6201 in camel-util-json [camel]

orpiske opened a new pull request, #22297:
URL: https://github.com/apache/camel/pull/22297

   _Claude Code on behalf of Otavio Piske_
   
   ## Summary
   
   - Replace `instanceof` check + cast with pattern matching `instanceof` (Java 16+) in `camel-util-json` module
   - Fixes 47 instances of SonarCloud rule [java:S6201](https://sonarcloud.io/project/issues?rules=java%3AS6201&issueStatuses=OPEN%2CCONFIRMED&id=apache_camel) across `JsonArray.java`, `JsonObject.java`, and `Jsoner.java`
   
   ## Test plan
   
   - [x] `mvn verify` passes in `tooling/camel-util-json` (11 tests, 0 failures)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] (chores): fix SonarCloud S6201 in camel-util-json [camel]

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on PR #22297:
URL: https://github.com/apache/camel/pull/22297#issuecomment-4143811528

   Lgtm. Thanks 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] (chores): fix SonarCloud S6201 in camel-util-json [camel]

Posted by "orpiske (via GitHub)" <gi...@apache.org>.
orpiske commented on PR #22297:
URL: https://github.com/apache/camel/pull/22297#issuecomment-4143608900

   I am using this one to test my Claude Code config.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] (chores): fix SonarCloud S6201 in camel-util-json [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22297:
URL: https://github.com/apache/camel/pull/22297#issuecomment-4143609742

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `build-all`, `build-dependents`, `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] (chores): fix SonarCloud S6201 in camel-util-json [camel]

Posted by "orpiske (via GitHub)" <gi...@apache.org>.
orpiske commented on PR #22297:
URL: https://github.com/apache/camel/pull/22297#issuecomment-4143627395

   Marked a few folks, just for a second look on the config ... 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] (chores): fix SonarCloud S6201 in camel-util-json [camel]

Posted by "orpiske (via GitHub)" <gi...@apache.org>.
orpiske merged PR #22297:
URL: https://github.com/apache/camel/pull/22297


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] (chores): fix SonarCloud S6201 in camel-util-json [camel]

Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on PR #22297:
URL: https://github.com/apache/camel/pull/22297#issuecomment-4143776794

   seems quite straightforward, thanks @orpiske 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org