Fix toString ternary operator presence

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2019-05-06 21:14:18 -04:00
parent e5c3bb0152
commit c230a23f81

View File

@ -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();
} }
} }