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>
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,