Fix visibily of ImmediateExecutor and add private constructor
This commit is contained in:
parent
11047aaa69
commit
77c01d252e
@ -20,7 +20,7 @@ import java.util.concurrent.Executor;
|
|||||||
/**
|
/**
|
||||||
* {@link Executor} which executes the command in the caller thread.
|
* {@link Executor} which executes the command in the caller thread.
|
||||||
*/
|
*/
|
||||||
final class ImmediateExecutor implements Executor {
|
public final class ImmediateExecutor implements Executor {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default instance.
|
* The default instance.
|
||||||
@ -31,4 +31,7 @@ final class ImmediateExecutor implements Executor {
|
|||||||
public void execute(Runnable command) {
|
public void execute(Runnable command) {
|
||||||
command.run();
|
command.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private ImmediateExecutor() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user