[style] Set abstract class constructor as protected

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2021-11-12 09:52:11 +01:00
parent 66d25697a8
commit 0c1cfe3946
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ public abstract class ForkTask implements Task {
/** Create the task. /** Create the task.
* *
* @param lines the number of print to store in the output */ * @param lines the number of print to store in the output */
public ForkTask(final int lines) { protected ForkTask(final int lines) {
out = new ConnectingConsoleOutput(ConnectingConsoleOutput.PERSIST, lines); out = new ConnectingConsoleOutput(ConnectingConsoleOutput.PERSIST, lines);
} }

View File

@ -84,8 +84,8 @@ public abstract class TaskSpawner extends Command {
private final ExecutorService threadPool; private final ExecutorService threadPool;
/** @param name the command name /** @param name the command name
* @param pool the pool */ * @param threadPool the pool */
public TaskSpawner(final String name, final TaskPool pool, protected TaskSpawner(final String name, final TaskPool pool,
final ExecutorService threadPool) { final ExecutorService threadPool) {
super(name); super(name);
this.pool = pool; this.pool = pool;