Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchLocation.java')
-rw-r--r--bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchLocation.java46
1 files changed, 12 insertions, 34 deletions
diff --git a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchLocation.java b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchLocation.java
index 6417cffb0..0ef56f5fb 100644
--- a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchLocation.java
+++ b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchLocation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 JCraft,Inc. and others.
+ * Copyright (c) 2007, 2019 JCraft,Inc. and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -48,82 +48,60 @@ public class JSchLocation extends PlatformObject implements IJSchLocation{
this(user, host, DEFAULT_PORT);
}
- /**
- * @see IJSchLocation#getHost()
- */
+ @Override
public String getHost(){
return host;
}
- /**
- * @see IJSchLocation#getPort()
- */
+ @Override
public int getPort(){
return port;
}
- /*
- * @see IJSchLocation#setUsername(String)
- */
+ @Override
public void setUsername(String user){
if(userFixed)
throw new UnsupportedOperationException();
this.user=user;
}
- /**
- * @see IJSchLocation#getUsername()
- */
+ @Override
public String getUsername(){
return user==null ? "" : user; //$NON-NLS-1$
}
- /**
- * @see IJSchLocation#setPassword(String)
- */
+ @Override
public void setPassword(String password){
if(password!=null)
this.password=password;
}
- /**
- * @see IJSchLocation#getPassword()
- */
+ @Override
public String getPassword(){
return password;
}
- /**
- * @see IJSchLocation#setComment(String comment)
- */
+ @Override
public void setComment(String comment){
this.comment=comment;
}
- /**
- * @see IJSchLocation#getComment()
- */
+ @Override
public String getComment(){
return comment;
}
- /**
- * @see IJSchLocation#setPasswordStore(IPasswordStore store)
- */
+ @Override
public void setPasswordStore(IPasswordStore store){
this.passwordStore=store;
}
- /**
- * @see IJSchLocation#getPasswordStore()
- */
+ @Override
public IPasswordStore getPasswordStore(){
return passwordStore;
}
- /**
- * Implementation of inherited toString()
- */
+ @Override
public String toString(){
return user
+"@"+host+((port==DEFAULT_PORT) ? "" : ":"+(Integer.valueOf(port).toString())); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$

Back to the top