[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:
Michael Keppler 2018-10-20 15:19:23 +02:00
parent d056a54384
commit f2db2a1f65
1 changed files with 2 additions and 1 deletions

View File

@ -278,7 +278,8 @@ private static String hostName(Session s) {
if (s.getPort() == SSH_PORT) {
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,