]> source.dussan.org Git - jgit.git/commitdiff
JschConfigSessionFactory: fix boxing warning 11/155211/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 4 Jan 2020 15:06:54 +0000 (16:06 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 6 Jan 2020 10:40:05 +0000 (11:40 +0100)
Change-Id: I1735033c56b444a9a7160cb7df89292a228d5b34
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java

index 4e712a55677c1d5db446708594ca1389d7a72f42..7924ec8c2375eed6b6b7f9c792b95d70d96dce3a 100644 (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,