Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-02-11 08:51:19 +0000
committerLars Vogel2020-02-11 09:46:36 +0000
commit20cd676b96091918641baaf7c764b38af96c2cee (patch)
tree1dcf09d342203adcaa9a4e9237c9cb555933808b /bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java
parent68d240884895880c0f5ce396681d86b4af24d241 (diff)
downloadeclipse.platform.team-20cd676b96091918641baaf7c764b38af96c2cee.tar.gz
eclipse.platform.team-20cd676b96091918641baaf7c764b38af96c2cee.tar.xz
eclipse.platform.team-20cd676b96091918641baaf7c764b38af96c2cee.zip
Remove unnecessary whitespace from team - Part 2
Change-Id: Ic2f64750371310a6449fea048988aed0f168b081 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java
index 62d43b29a..56eb62ffe 100644
--- a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java
+++ b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java
@@ -30,7 +30,7 @@ import com.jcraft.jsch.*;
class JSchSession {
private static final int SSH_DEFAULT_PORT = 22;
private static Hashtable<String, JSchSession> pool = new Hashtable<>();
-
+
private final Session session;
private final ICVSRepositoryLocation location;
@@ -44,12 +44,12 @@ class JSchSession {
public static boolean isAuthenticationFailure(JSchException ee) {
return ee.getMessage().equals("Auth fail"); //$NON-NLS-1$
}
-
+
static JSchSession getSession(final ICVSRepositoryLocation location, String username, String password, String hostname, int port, IProgressMonitor monitor) throws JSchException {
int actualPort = port;
if (actualPort == ICVSRepositoryLocation.USE_DEFAULT_PORT)
actualPort = getPort(location);
-
+
String key = getPoolKey(username, hostname, actualPort);
try {
@@ -63,7 +63,7 @@ class JSchSession {
IJSchService service = getJSchService();
IJSchLocation jlocation=service.getLocation(username, hostname, actualPort);
- // As for the connection method "pserverssh2",
+ // As for the connection method "pserverssh2",
// there is not a place to save the given password for ssh2.
if (!location.getMethod().getName().equals("pserverssh2")) { //$NON-NLS-1$
IPasswordStore pstore = new IPasswordStore() {
@@ -84,7 +84,7 @@ class JSchSession {
jlocation.setPasswordStore(pstore);
}
jlocation.setComment(NLS.bind(CVSSSH2Messages.JSchSession_3, new String[] {location.toString()}));
-
+
Session session = null;
try {
session = createSession(service, jlocation, password, monitor);
@@ -156,7 +156,7 @@ class JSchSession {
static JSch getJSch() {
return getJSchService().getJSch();
}
-
+
private JSchSession(Session session, ICVSRepositoryLocation location) {
this.session = session;
this.location = location;

Back to the top