diff --git a/src/main/java/org/jboss/netty/handler/ssl/ImmediateExecutor.java b/src/main/java/org/jboss/netty/handler/ssl/ImmediateExecutor.java index 0fd90433ff..a06175ae5d 100644 --- a/src/main/java/org/jboss/netty/handler/ssl/ImmediateExecutor.java +++ b/src/main/java/org/jboss/netty/handler/ssl/ImmediateExecutor.java @@ -20,14 +20,18 @@ import java.util.concurrent.Executor; /** * {@link Executor} which executes the command in the caller thread. */ -final class ImmediateExecutor implements Executor { +public final class ImmediateExecutor implements Executor { /** * The default instance. */ - static final ImmediateExecutor INSTANCE = new ImmediateExecutor(); + public static final ImmediateExecutor INSTANCE = new ImmediateExecutor(); public void execute(Runnable command) { command.run(); } + + private ImmediateExecutor() { + // should use static instance + } }