diff options
author | Alexander Kurtakov | 2017-05-03 06:19:15 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-05-03 06:19:15 +0000 |
commit | 22529fb353be7bd4ff8f74ca7715c8d1e6c2cfb5 (patch) | |
tree | abf655bc9fb435b489b037c69e789957bcdb3ab3 /bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java | |
parent | 5117c5fdef9bf7bc69f5ee198688b2eba92286c1 (diff) | |
download | eclipse.platform.team-22529fb353be7bd4ff8f74ca7715c8d1e6c2cfb5.tar.gz eclipse.platform.team-22529fb353be7bd4ff8f74ca7715c8d1e6c2cfb5.tar.xz eclipse.platform.team-22529fb353be7bd4ff8f74ca7715c8d1e6c2cfb5.zip |
Bug 516077 - Cleanup o.e.core.netY20170504-1000I20170504-2000I20170503-2000
* Add missing @Override/@Deprecated.
* Generify
* Lambda
Change-Id: I89c9dd0a44a53fa91bacb28ceeea98f92e4bee0b
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java')
-rw-r--r-- | bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java index 91d91fd14..2a68e3b2c 100644 --- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java +++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2009 IBM Corporation and others. + * Copyright (c) 2007, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -36,22 +36,27 @@ public class ProxyData implements IProxyData { this.type = type; } + @Override public String getHost() { return host; } + @Override public String getPassword() { return password; } + @Override public int getPort() { return port; } + @Override public String getType() { return type; } + @Override public String getUserId() { return user; } @@ -60,29 +65,35 @@ public class ProxyData implements IProxyData { this.type = type; } + @Override public void setHost(String host) { if (host != null && host.length() == 0) host = null; this.host = host; } + @Override public void setPassword(String password) { this.password = password; } + @Override public void setPort(int port) { this.port = port; } + @Override public void setUserid(String userid) { this.user = userid; requiresAuthentication = userid != null; } + @Override public boolean isRequiresAuthentication() { return requiresAuthentication; } + @Override public void disable() { host = null; port = -1; @@ -107,6 +118,7 @@ public class ProxyData implements IProxyData { this.dynamic = dynamic; } + @Override public String toString() { StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("type: "); //$NON-NLS-1$ @@ -128,6 +140,7 @@ public class ProxyData implements IProxyData { return stringBuffer.toString(); } + @Override public int hashCode() { final int prime = 31; int result = 1; @@ -143,6 +156,7 @@ public class ProxyData implements IProxyData { return result; } + @Override public boolean equals(Object obj) { if (this == obj) return true; |