Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchProvider.java')
-rw-r--r--bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchProvider.java25
1 files changed, 7 insertions, 18 deletions
diff --git a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchProvider.java b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchProvider.java
index bff9274d8..7680bb71f 100644
--- a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchProvider.java
+++ b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchProvider.java
@@ -35,9 +35,7 @@ class JSchProvider implements IJSchService {
private static JSchProvider instance;
- /* (non-Javadoc)
- * @see org.eclipse.jsch.core.IJSchService#createSession(java.lang.String, int, java.lang.String)
- */
+ @Override
public Session createSession(String host, int port, String username) throws JSchException {
if(JSchCorePlugin.getPlugin().isNeedToLoadKnownHosts()){
@@ -51,9 +49,7 @@ class JSchProvider implements IJSchService {
return Utils.createSession(JSchCorePlugin.getPlugin().getJSch(), username, host, port);
}
- /* (non-Javadoc)
- * @see org.eclipse.jsch.core.IJSchService#createSession(IJSchLocation location, UserInfo uinfo)
- */
+ @Override
public Session createSession(IJSchLocation location, UserInfo uinfo) throws JSchException {
Session session=createSession(location.getHost(), location.getPort(), location.getUsername());
@@ -74,9 +70,7 @@ class JSchProvider implements IJSchService {
return createSession(location, null);
}
- /**
- * @see org.eclipse.jsch.core.IJSchService#connect(com.jcraft.jsch.Session, int, org.eclipse.core.runtime.IProgressMonitor)
- */
+ @Override
public void connect(Session session, int timeout,
IProgressMonitor monitor) throws JSchException{
session.setSocketFactory(new ResponsiveSocketFactory(monitor, timeout));
@@ -122,9 +116,7 @@ class JSchProvider implements IJSchService {
((UserInfoImpl)ui).connectionMade();
}
- /**
- * @see org.eclipse.jsch.core.IJSchService#getProxyForHost(java.lang.String, java.lang.String)
- */
+ @Override
public Proxy getProxyForHost(String host, String proxyType) {
return Utils.getProxyForHost(host, proxyType);
}
@@ -135,9 +127,7 @@ class JSchProvider implements IJSchService {
return instance;
}
- /* (non-Javadoc)
- * @see org.eclipse.jsch.core.IJSchService#connect(com.jcraft.jsch.Proxy, java.lang.String, int, int, org.eclipse.core.runtime.IProgressMonitor)
- */
+ @Override
public void connect(Proxy proxy, String host, int port, int timeout,
IProgressMonitor monitor) throws JSchException {
try{
@@ -187,6 +177,7 @@ class JSchProvider implements IJSchService {
}
}
+ @Override
public JSch getJSch(){
return JSchCorePlugin.getPlugin().getJSch();
}
@@ -201,9 +192,7 @@ class JSchProvider implements IJSchService {
return ((UserInfoImpl)session.getUserInfo()).hasPromptExceededTimeout();
}
- /**
- * @see org.eclipse.jsch.core.IJSchService#getLocation(String user, String host, int port)
- */
+ @Override
public IJSchLocation getLocation(String user, String host, int port){
IJSchLocation location=null;
location=new JSchLocation(user, host, port);

Back to the top