orpiske opened a new pull request, #22303: URL: https://github.com/apache/camel/pull/22303
## Summary - Replace traditional `instanceof` check + explicit cast with Java 16+ pattern matching `instanceof` across 103 files in 14 module groups - Addresses ~250 SonarCloud S6201 violations (pattern matching for instanceof operator) - All changes are purely mechanical — semantically equivalent, no behavioral changes ### Modules fixed: - **Core**: camel-support, camel-core-model, camel-core-languages, camel-base-engine, camel-yaml-io - **AWS**: camel-aws-bedrock, camel-aws-config, camel-aws2-ddb, camel-aws-secrets-manager, camel-aws-xray, camel-aws2-cw, camel-aws2-ec2, camel-aws2-eventbridge, camel-aws2-mq, camel-aws2-msk, camel-aws2-s3, camel-aws2-sns, camel-aws2-sqs, camel-aws2-sts, camel-aws2-translate - **Azure**: camel-azure-functions, camel-azure-servicebus - **CXF**: camel-cxf-common, camel-cxf-soap, camel-cxf-rest, camel-cxf-spring-soap, camel-cxf-spring-rest, camel-cxf-transport - **Components**: camel-elasticsearch, camel-jackson3 (+avro, +protobuf), camel-mail, camel-netty, camel-netty-http, camel-opensearch, camel-pqc, camel-sjms, camel-smpp, camel-spring-rabbitmq, camel-zeebe ## Test plan - [ ] All affected modules compile with `mvn -DskipTests install` - [ ] Formatting verified with `mvn formatter:format impsort:sort` - [ ] CI passes on all affected modules 🤖 Generated with [Claude Code](https://claude.com/claude-code) on behalf of Otavio R. Piske -- 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]
