Skip to content

Commit

Permalink
remove superflus system.out call
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Nov 28, 2023
1 parent 88abf59 commit 867bf58
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ private ThreadFactory makeThreadFactory() {
Method ofVirtualMethod = Thread.class.getMethod("ofVirtual");
Object threadBuilderOfVirtual = ofVirtualMethod.invoke(null);
Method factoryMethod = threadBuilderOfVirtual.getClass().getMethod("factory");
System.out.println("virtual THREAD FACTORY");
return (ThreadFactory) factoryMethod.invoke(threadBuilderOfVirtual);
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
return Executors.defaultThreadFactory();
}

} else {
System.out.println("default THREAD FACTORY");
return Executors.defaultThreadFactory();
}
}
Expand Down

0 comments on commit 867bf58

Please sign in to comment.