orpiske opened a new pull request, #21064:
URL: https://github.com/apache/camel/pull/21064
## Summary
- Modernize `instanceof` checks across 41 modules using Java 16+ pattern
matching syntax
- Addresses SonarCloud rule java:S6201 violations
- Transforms patterns like `if (obj instanceof Type) { Type t = (Type) obj;
}` to `if (obj instanceof Type t) { }`
## Modules Updated
camel-mock, camel-route-parser, camel-bean, camel-beanio, camel-kafka,
camel-slack, camel-jslt, camel-jdbc, camel-stitch, camel-smooks, camel-service,
camel-kubernetes, camel-console, camel-core-model, camel-util, camel-quartz,
camel-webhook, camel-platform-http-vertx, camel-activemq, camel-activemq6,
camel-jira, camel-amqp, camel-bindy, camel-file, camel-jms, camel-cron,
camel-csv, camel-exec, camel-hazelcast, camel-mongodb, camel-nats, camel-jpa,
camel-jq, camel-mustache, camel-printer, camel-zipfile, camel-attachments,
camel-xslt, camel-stax, camel-stream, camel-zookeeper
## Test plan
- [x] Each module was built with `mvn -DskipTests install`
- [x] Each module passed `mvn verify` before committing
- [x] No functional changes, only syntax modernization
--
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]