Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Replaced Vector with ArrayList

  • Loading branch information...
commit 697906c3d90785c7f2eb0a1cc055b07e61dda0df 1 parent d0799b8
Magnus Skjegstad authored

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 4 test/com/skjegstad/utils/BloomFilterTest.java
9 test/com/skjegstad/utils/BloomFilterTest.java
@@ -15,10 +15,11 @@
15 15
16 16 package com.skjegstad.utils;
17 17
  18 +import java.util.List;
18 19 import java.io.UnsupportedEncodingException;
19 20 import java.util.Random;
20 21 import java.util.UUID;
21   -import java.util.Vector;
  22 +import java.util.ArrayList;
22 23 import org.junit.Test;
23 24 import static org.junit.Assert.*;
24 25
@@ -206,7 +207,7 @@ public void testAdd() throws Exception {
206 207 @Test
207 208 public void testAddAll() throws Exception {
208 209 System.out.println("addAll");
209   - Vector<String> v = new Vector<String>();
  210 + List<String> v = new ArrayList<String>();
210 211 BloomFilter instance = new BloomFilter(1000, 100);
211 212
212 213 for (int i = 0; i < 100; i++)
@@ -242,7 +243,7 @@ public void testContains() throws Exception {
242 243 @Test
243 244 public void testContainsAll() throws Exception {
244 245 System.out.println("containsAll");
245   - Vector<String> v = new Vector<String>();
  246 + List<String> v = new ArrayList<String>();
246 247 BloomFilter instance = new BloomFilter(1000, 100);
247 248
248 249 for (int i = 0; i < 100; i++) {
@@ -312,7 +313,7 @@ public void testFalsePositiveRate() throws UnsupportedEncodingException {
312 313
313 314 for (int j = 10; j < 21; j++) {
314 315 System.out.print(j-9 + "/11");
315   - Vector<String> v = new Vector<String>();
  316 + List<String> v = new ArrayList<String>();
316 317 BloomFilter instance = new BloomFilter(100*j,100);
317 318
318 319 for (int i = 0; i < 100; i++) {

0 comments on commit 697906c

Please sign in to comment.
Something went wrong with that request. Please try again.