summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2020-01-04 16:06:54 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2020-01-06 11:40:05 +0100
commit14bfe08757fa6267df2844c7365af9fb9ebc1578 (patch)
treee21496764cc78123993cb7e362e25d3ce62d609f /org.eclipse.jgit
parentd9e957dc2485d4a0737e537298e575365ec5eb2c (diff)
downloadjgit-14bfe08757fa6267df2844c7365af9fb9ebc1578.tar.gz
jgit-14bfe08757fa6267df2844c7365af9fb9ebc1578.zip
JschConfigSessionFactory: fix boxing warning
Change-Id: I1735033c56b444a9a7160cb7df89292a228d5b34 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java
index 4e712a5567..7924ec8c23 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java
+++ b/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,