Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replaced Vector with ArrayList

  • Loading branch information...
commit 697906c3d90785c7f2eb0a1cc055b07e61dda0df 1 parent d0799b8
@MagnusS authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 test/com/skjegstad/utils/BloomFilterTest.java
View
9 test/com/skjegstad/utils/BloomFilterTest.java
@@ -15,10 +15,11 @@
package com.skjegstad.utils;
+import java.util.List;
import java.io.UnsupportedEncodingException;
import java.util.Random;
import java.util.UUID;
-import java.util.Vector;
+import java.util.ArrayList;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -206,7 +207,7 @@ public void testAdd() throws Exception {
@Test
public void testAddAll() throws Exception {
System.out.println("addAll");
- Vector<String> v = new Vector<String>();
+ List<String> v = new ArrayList<String>();
BloomFilter instance = new BloomFilter(1000, 100);
for (int i = 0; i < 100; i++)
@@ -242,7 +243,7 @@ public void testContains() throws Exception {
@Test
public void testContainsAll() throws Exception {
System.out.println("containsAll");
- Vector<String> v = new Vector<String>();
+ List<String> v = new ArrayList<String>();
BloomFilter instance = new BloomFilter(1000, 100);
for (int i = 0; i < 100; i++) {
@@ -312,7 +313,7 @@ public void testFalsePositiveRate() throws UnsupportedEncodingException {
for (int j = 10; j < 21; j++) {
System.out.print(j-9 + "/11");
- Vector<String> v = new Vector<String>();
+ List<String> v = new ArrayList<String>();
BloomFilter instance = new BloomFilter(100*j,100);
for (int i = 0; i < 100; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.