[releng] Fix boxing warning
Use Integer.valueOf() to avoid the warning by implicit conversion due to usage as argument object in String.format(). Change-Id: Ib314f629d54ae1ce9729c3837d66ce8982a1898a Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
This commit is contained in:
parent
d056a54384
commit
f2db2a1f65
|
@ -278,7 +278,8 @@ private static String hostName(Session s) {
|
||||||
if (s.getPort() == SSH_PORT) {
|
if (s.getPort() == SSH_PORT) {
|
||||||
return s.getHost();
|
return s.getHost();
|
||||||
}
|
}
|
||||||
return String.format("[%s]:%d", s.getHost(), s.getPort()); //$NON-NLS-1$
|
return String.format("[%s]:%d", s.getHost(), //$NON-NLS-1$
|
||||||
|
Integer.valueOf(s.getPort()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void copyConfigValueToSession(Session session, Config cfg,
|
private void copyConfigValueToSession(Session session, Config cfg,
|
||||||
|
|
Loading…
Reference in New Issue