gnodet opened a new pull request, #22343: URL: https://github.com/apache/camel/pull/22343
## Summary Fix all 31 SonarCloud blocker reliability issues ([java:S2095](https://sonarcloud.io/project/issues?impactSeverities=BLOCKER&impactSoftwareQualities=RELIABILITY&issueStatuses=OPEN%2CCONFIRMED&id=apache_camel) — resource leaks): - **JcrConsumer**: `ScheduledExecutorService` created as local variable but never stored or shut down. Fixed by storing in a field and shutting down via `ExecutorServiceManager.shutdownNow()` in `cancelSessionListenerChecker()` - **ModelWriterGeneratorMojo**: `DynamicClassLoader` (extends `URLClassLoader`) never closed. Fixed with try-with-resources - **23 HttpClient false positives**: Set `sonar.java.source=17` so SonarCloud analyzes against the correct API surface (HttpClient only implements AutoCloseable since Java 21, but project compiles with `--release 17`) - **6 ExecutorService/CamelContext false positives**: Added `@SuppressWarnings("java:S2095")` with explanatory comments on `AggregateReifier`, `ThreadsReifier`, `SalesforceComponent`, and `CamelYamlParser` ## Test plan - [ ] CI passes — changes are minimal (1 real bug fix, 1 resource cleanup, rest are annotations/config) - [ ] Verify SonarCloud blocker count drops to 0 after merge -- 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]
