From 1bdc13451f496e77268b80544ff71146d46e114d Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 4 Jan 2013 11:37:30 +0100 Subject: [PATCH] [#890] ImmediateExecutor should be public --- .../org/jboss/netty/handler/ssl/ImmediateExecutor.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 + } }