increment in separate statement. string construction
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
d7fbdfb66b
commit
637cfb8f43
@ -143,7 +143,8 @@ public final class DConnexionManager<T> implements ConnexionManager<T> {
|
|||||||
*
|
*
|
||||||
* @return a new ID */
|
* @return a new ID */
|
||||||
private String newID() {
|
private String newID() {
|
||||||
return "Client " + count++; //$NON-NLS-1$
|
final int c = count++;
|
||||||
|
return "Client " + c; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -123,8 +123,7 @@ public final class RemoteDisconnectCommand<T> extends Command {
|
|||||||
@Override
|
@Override
|
||||||
protected String usageDetail() {
|
protected String usageDetail() {
|
||||||
return MessageFormat.format(
|
return MessageFormat.format(
|
||||||
" If arguments are provided the corresponding connexions are closed, "
|
" If arguments are provided the corresponding connexions are closed, otherwise\n{0} are.",
|
||||||
+ "otherwise{0}{1} are.",
|
all ? "all connexions" : "none");
|
||||||
System.lineSeparator(), all ? "all connexions" : "none");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user