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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
