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>
stable-5.2
Michael Keppler 6 years ago
parent
commit
f2db2a1f65
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java

3
org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java

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