Browse Source

JschConfigSessionFactory: fix boxing warning

Change-Id: I1735033c56b444a9a7160cb7df89292a228d5b34
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.1
Matthias Sohn 5 years ago
parent
commit
14bfe08757
  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) { 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…
Cancel
Save