[#890] ImmediateExecutor should be public
This commit is contained in:
parent
b38114154d
commit
1bdc13451f
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user