[style] protected context for constructor of abstract classes
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
8643b69054
commit
7b7d0e6747
@ -73,7 +73,7 @@ public abstract class Command implements ICommand {
|
||||
/** Create the command.
|
||||
*
|
||||
* @param name the command name */
|
||||
public Command(final String name) {
|
||||
protected Command(final String name) {
|
||||
super();
|
||||
if (name == null) {
|
||||
throw new IllegalArgumentException("The command name is mandatory");
|
||||
|
@ -94,7 +94,7 @@ public abstract class ParametrizedCommand extends Command {
|
||||
* parameters.
|
||||
*
|
||||
* @param name the name */
|
||||
public ParametrizedCommand(final String name) {
|
||||
protected ParametrizedCommand(final String name) {
|
||||
this(name, true);
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ public abstract class ParametrizedCommand extends Command {
|
||||
*
|
||||
* @param name the name
|
||||
* @param strict if the arguments are restricted to the declared ones */
|
||||
public ParametrizedCommand(final String name, final boolean strict) {
|
||||
protected ParametrizedCommand(final String name, final boolean strict) {
|
||||
super(name);
|
||||
data = new ParametrizedCommandData(strict);
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ public abstract class AOutputForwardRunnable implements Runnable {
|
||||
/** Create a forwarding runnable.
|
||||
*
|
||||
* @param manager the manager */
|
||||
public AOutputForwardRunnable(final PipedConsoleOutput manager) {
|
||||
protected AOutputForwardRunnable(final PipedConsoleOutput manager) {
|
||||
super();
|
||||
this.manager = manager;
|
||||
timeout = DEFAULT_TIMEOUT;
|
||||
@ -116,7 +116,8 @@ public abstract class AOutputForwardRunnable implements Runnable {
|
||||
*
|
||||
* @param manager the manager
|
||||
* @param timeout the timeout between message requests. */
|
||||
public AOutputForwardRunnable(final PipedConsoleOutput manager, final long timeout) {
|
||||
protected AOutputForwardRunnable(final PipedConsoleOutput manager,
|
||||
final long timeout) {
|
||||
super();
|
||||
this.manager = manager;
|
||||
this.timeout = timeout;
|
||||
|
Loading…
Reference in New Issue
Block a user