Browse Source

[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>
tags/v5.2.0.201811281532-m3
Michael Keppler 5 years ago
parent
commit
f2db2a1f65

+ 2
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java View File

@@ -278,7 +278,8 @@ public abstract class JschConfigSessionFactory extends SshSessionFactory {
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,

Loading…
Cancel
Save