[#890] ImmediateExecutor should be public

This commit is contained in:
Norman Maurer 2013-01-04 11:37:30 +01:00
parent b38114154d
commit 1bdc13451f

View File

@ -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
}
}