From 35576de9a2fde0e454d53c926701f0689b77670e Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 13 Jun 2016 11:02:37 +0200 Subject: [PATCH] Expose DefaultThreadFactory.threadGroup to sub-classes Motivation: DefaultThreadFactory allows to override the newThread(...) method and so should have access to all fields that are set via the constructor. Modifications: Change threadGroup from private to protected visibility. Result: Easier to extend DefaultThreadFactory. --- .../java/io/netty/util/concurrent/DefaultThreadFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/io/netty/util/concurrent/DefaultThreadFactory.java b/common/src/main/java/io/netty/util/concurrent/DefaultThreadFactory.java index bab2cf9c73..c0c56bf1b2 100644 --- a/common/src/main/java/io/netty/util/concurrent/DefaultThreadFactory.java +++ b/common/src/main/java/io/netty/util/concurrent/DefaultThreadFactory.java @@ -34,7 +34,7 @@ public class DefaultThreadFactory implements ThreadFactory { private final String prefix; private final boolean daemon; private final int priority; - private final ThreadGroup threadGroup; + protected final ThreadGroup threadGroup; public DefaultThreadFactory(Class poolType) { this(poolType, false, Thread.NORM_PRIORITY);