浏览代码

JschConfigSessionFactory: fix boxing warning

Change-Id: I1735033c56b444a9a7160cb7df89292a228d5b34
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.7.0.202001151323-m1
Matthias Sohn 4 年前
父节点
当前提交
14bfe08757
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java

+ 2
- 1
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,

正在加载...
取消
保存