Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java
index afd9f5270..6afbab462 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java
@@ -385,14 +385,16 @@ public abstract class AbstractOutgoingFileTransfer implements IOutgoingFileTrans
// If more than one proxy is available, then if http/https protocol then look for that
// one...if not found then use first
if (protocol.equalsIgnoreCase("http")) { //$NON-NLS-1$
- for (int i = 0; i < proxies.length; i++) {
- if (proxies[i].getType().equals(IProxyData.HTTP_PROXY_TYPE))
- return proxies[i];
+ for (IProxyData proxie : proxies) {
+ if (proxie.getType().equals(IProxyData.HTTP_PROXY_TYPE)) {
+ return proxie;
+ }
}
} else if (protocol.equalsIgnoreCase("https")) { //$NON-NLS-1$
- for (int i = 0; i < proxies.length; i++) {
- if (proxies[i].getType().equals(IProxyData.HTTPS_PROXY_TYPE))
- return proxies[i];
+ for (IProxyData proxie : proxies) {
+ if (proxie.getType().equals(IProxyData.HTTPS_PROXY_TYPE)) {
+ return proxie;
+ }
}
}
// If we haven't found it yet, then return the first one.

Back to the top