gnodet commented on code in PR #24488:
URL: https://github.com/apache/camel/pull/24488#discussion_r3536914182
##########
tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java:
##########
@@ -459,11 +459,13 @@ protected void afterBootstrapCamel() throws Exception {
// noop
}
- class IsolatedThreadGroup extends ThreadGroup {
+ class IsolatedThreadGroup implements Thread.UncaughtExceptionHandler {
+ @SuppressWarnings("java:S3014") // ThreadGroup is needed for thread
containment; no modern alternative in Java 17
+ private final ThreadGroup threadGroup;
Throwable uncaughtException; // synchronize access to this
IsolatedThreadGroup(String name) {
- super(name);
+ this.threadGroup = new ThreadGroup(name);
}
Review Comment:
Moved `@SuppressWarnings("java:S3014")` to the class level so it covers both
the field declaration and the `new ThreadGroup(name)` instantiation in the
constructor. Fixed in 4cbfa57.
_Claude Code on behalf of gnodet_
--
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]