Commit 4aa5e016 authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Replace Vector in java with ArrayList.

Lint warning:
warning: [JdkObsolete] Vector performs synchronization that is usually unnecessary; prefer ArrayList.

None of the usages are used outside of a single function, so no
need for any synchronization.

BUG=

Change-Id: Ic54e896451415531ee4195d4868a55f1bb936df2
Reviewed-on: https://chromium-review.googlesource.com/801262Reviewed-by: default avatarTommy Nyquist <nyquist@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#520712}
parent 82629737
......@@ -44,7 +44,6 @@ import org.chromium.content.browser.BrowserStartupController;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Vector;
/**
* This class provides access to user data stored in Chrome, such as bookmarks, most visited pages,
......@@ -300,7 +299,7 @@ public class ChromeBrowserProvider extends ContentProvider {
private Cursor getBookmarkHistorySuggestions(String selection, String[] selectionArgs,
String sortOrder, boolean excludeHistory) {
boolean matchTitles = false;
Vector<String> args = new Vector<String>();
List<String> args = new ArrayList<String>();
String like = selectionArgs[0] + "%";
if (selectionArgs[0].startsWith(UrlConstants.HTTP_SCHEME)
|| selectionArgs[0].startsWith(UrlConstants.FILE_SCHEME)) {
......
......@@ -30,7 +30,8 @@ import org.chromium.base.test.util.Feature;
import org.chromium.chrome.browser.test.ChromeBrowserTestRule;
import org.chromium.chrome.browser.test.CommandLineInitRule;
import java.util.Vector;
import java.util.ArrayList;
import java.util.List;
/**
* Tests for IntentHandler.
......@@ -95,7 +96,7 @@ public class IntentHandlerTest {
private Intent mIntent;
private void processUrls(String[] urls, boolean isValid) {
Vector<String> failedTests = new Vector<String>();
List<String> failedTests = new ArrayList<String>();
for (String url : urls) {
mIntent.setData(Uri.parse(url));
......@@ -157,7 +158,7 @@ public class IntentHandlerTest {
@SmallTest
@Feature({"Android-AppBase"})
public void testRejectedGoogleChromeSchemeUrls() {
Vector<String> failedTests = new Vector<String>();
List<String> failedTests = new ArrayList<String>();
for (String url : REJECTED_GOOGLECHROME_URLS) {
mIntent.setData(Uri.parse(url));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment