From f2db2a1f6589075e7740b9b6db33745dc4d2ecfb Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Sat, 20 Oct 2018 15:19:23 +0200 Subject: [PATCH] [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 --- .../org/eclipse/jgit/transport/JschConfigSessionFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5