m1a2st commented on code in PR #16965:
URL: https://github.com/apache/kafka/pull/16965#discussion_r1807358821


##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/isolation/SynchronizationTest.java:
##########
@@ -461,9 +461,7 @@ private static ThreadFactory 
threadFactoryWithNamedThreads(String threadPrefix)
         return r -> {
             // This is essentially Executors.defaultThreadFactory except with
             // custom thread names so in order to filter by thread names when 
debugging
-            SecurityManager s = System.getSecurityManager();
-            Thread t = new Thread((s != null) ? s.getThreadGroup() :
-                Thread.currentThread().getThreadGroup(), r,
+            Thread t = new Thread(Thread.currentThread().getThreadGroup(), r,

Review Comment:
   Java 17 is deprecated the SecurityManager, see 
[doc](https://openjdk.org/jeps/411)



-- 
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]

Reply via email to