Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Sieka2015-04-04 10:46:24 +0000
committerAlexander Kurtakov2015-07-31 16:29:28 +0000
commitc889382deb11ca2e872b2c22e6d7eb94d1c4b6f9 (patch)
tree0124997976e72e0e5f3cfadbb1cdfe1be8477968 /bundles/org.eclipse.swt/Eclipse SWT Browser
parentf5cbd382382160f6fc3a985bfa01f15f4283be91 (diff)
downloadeclipse.platform.swt-c889382deb11ca2e872b2c22e6d7eb94d1c4b6f9.tar.gz
eclipse.platform.swt-c889382deb11ca2e872b2c22e6d7eb94d1c4b6f9.tar.xz
eclipse.platform.swt-c889382deb11ca2e872b2c22e6d7eb94d1c4b6f9.zip
Bug 458863 - [Common] Replace Vector with ArrayList and friends
Vector -> List, ArrayList Change-Id: I888585ff319d4591362e302a939107a9950ecfd0 Signed-off-by: Jacek Sieka <arnetheduck@gmail.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Browser')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java
index be790c5516..7940d1cacf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java
@@ -11,6 +11,7 @@
package org.eclipse.swt.browser;
import java.util.*;
+import java.util.List;
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
@@ -33,8 +34,8 @@ abstract class WebBrowser {
static final String ERROR_ID = "org.eclipse.swt.browser.error"; // $NON-NLS-1$
static final String EXECUTE_ID = "SWTExecuteTemporaryFunction"; // $NON-NLS-1$
- static Vector<String[]> NativePendingCookies = new Vector<String[]> ();
- static Vector<String[]> MozillaPendingCookies = new Vector<String[]> ();
+ static List<String[]> NativePendingCookies = new ArrayList<String[]> ();
+ static List<String[]> MozillaPendingCookies = new ArrayList<String[]> ();
static String CookieName, CookieValue, CookieUrl;
static boolean CookieResult;
static Runnable MozillaClearSessions, NativeClearSessions;
@@ -293,7 +294,7 @@ public static boolean SetCookie (String value, String url, boolean addToPending)
return CookieResult;
}
-static void SetPendingCookies (Vector<String[]> pendingCookies) {
+static void SetPendingCookies (List<String[]> pendingCookies) {
for (String[] current : pendingCookies) {
SetCookie (current[0], current[1], false);
}

Back to the top