Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Brandys2010-09-20 07:59:58 +0000
committerSzymon Brandys2010-09-20 07:59:58 +0000
commit4995ea6ee150eef239f72a1aba653631ce6be870 (patch)
tree71f6f0436552021b03d289e373d30319b1217c13 /bundles/org.eclipse.core.net
parentf6de9743c16aded0733bfc37b218d0aa6d908e56 (diff)
downloadeclipse.platform.team-4995ea6ee150eef239f72a1aba653631ce6be870.tar.gz
eclipse.platform.team-4995ea6ee150eef239f72a1aba653631ce6be870.tar.xz
eclipse.platform.team-4995ea6ee150eef239f72a1aba653631ce6be870.zip
bug 323942 - [Net] Unnecessary native method call
Diffstat (limited to 'bundles/org.eclipse.core.net')
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyManager.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyManager.java
index a9042f424..d94862316 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyManager.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyManager.java
@@ -364,7 +364,7 @@ public class ProxyManager implements IProxyService, IPreferenceChangeListener {
try {
URI uri = new URI(type, "//" + host, null); //$NON-NLS-1$
IProxyData[] proxyDatas = nativeProxyProvider.select(uri);
- return proxyDatas.length > 0 ? resolveType(nativeProxyProvider.select(uri)[0]) : null;
+ return proxyDatas.length > 0 ? resolveType(proxyDatas[0]) : null;
} catch (URISyntaxException e) {
return null;
}

Back to the top