Skip to content

Commit f60d2e4

Browse files
committed
removed thread groups
1 parent c21a064 commit f60d2e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/password4j/Utils.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ class Utils
5454
private static final int[] FROM_BASE64 = new int[256];
5555

5656
private static final AtomicInteger THREAD_COUNTER = new AtomicInteger(1);
57-
58-
private static final ThreadGroup THREAD_GROUP = new ThreadGroup("Password4j Workers");
59-
57+
6058
static
6159
{
6260
Arrays.fill(FROM_BASE64, -1);
@@ -664,7 +662,7 @@ static List<byte[]> split(byte[] array, byte delimiter) {
664662

665663
static ExecutorService createExecutorService() {
666664
return Executors.newFixedThreadPool(AVAILABLE_PROCESSORS, runnable -> {
667-
Thread thread = new Thread(THREAD_GROUP, runnable, "password4j-worker-" + THREAD_COUNTER.getAndIncrement());
665+
Thread thread = new Thread(runnable, "password4j-worker-" + THREAD_COUNTER.getAndIncrement());
668666
thread.setDaemon(true);
669667
return thread;
670668
});

0 commit comments

Comments
 (0)