Fix visibily of ImmediateExecutor and add private constructor

This commit is contained in:
Norman Maurer 2012-12-19 15:31:07 +01:00
parent 11047aaa69
commit 77c01d252e

View File

@ -20,7 +20,7 @@ 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.
@ -31,4 +31,7 @@ final class ImmediateExecutor implements Executor {
public void execute(Runnable command) {
command.run();
}
private ImmediateExecutor() {
}
}