Fix toString ternary operator presence
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
e5c3bb0152
commit
c230a23f81
@ -123,8 +123,14 @@ public final class RemoteDisconnectCommand<T> extends Command {
|
|||||||
* @see fr.bigeon.gclc.command.Command#usageDetail() */
|
* @see fr.bigeon.gclc.command.Command#usageDetail() */
|
||||||
@Override
|
@Override
|
||||||
protected String usageDetail() {
|
protected String usageDetail() {
|
||||||
return MessageFormat.format(
|
final StringBuilder builder = new StringBuilder(
|
||||||
" If arguments are provided the corresponding connexions are closed, otherwise\n{0} are.",
|
" If arguments are provided the corresponding connexions are closed, otherwise\n");
|
||||||
all ? "all connexions" : "none");
|
if (all) {
|
||||||
|
builder.append("all connections");
|
||||||
|
} else {
|
||||||
|
builder.append("none");
|
||||||
|
}
|
||||||
|
builder.append(" are.");
|
||||||
|
return builder.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user