increment in separate statement. string construction

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2018-10-26 11:10:33 -04:00
parent d7fbdfb66b
commit 637cfb8f43
2 changed files with 4 additions and 4 deletions

View File

@ -143,7 +143,8 @@ public final class DConnexionManager<T> implements ConnexionManager<T> {
*
* @return a new ID */
private String newID() {
return "Client " + count++; //$NON-NLS-1$
final int c = count++;
return "Client " + c; //$NON-NLS-1$
}
/* (non-Javadoc)

View File

@ -123,8 +123,7 @@ public final class RemoteDisconnectCommand<T> extends Command {
@Override
protected String usageDetail() {
return MessageFormat.format(
" If arguments are provided the corresponding connexions are closed, "
+ "otherwise{0}{1} are.",
System.lineSeparator(), all ? "all connexions" : "none");
" If arguments are provided the corresponding connexions are closed, otherwise\n{0} are.",
all ? "all connexions" : "none");
}
}