You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/02/17 14:10:40 UTC

[commons-collections] 10/12: Remove unthrown exception.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git

commit 1f17189d535898d12e045604692eb0f0eefae86b
Author: aherbert <a....@sussex.ac.uk>
AuthorDate: Mon Feb 17 13:34:56 2020 +0000

    Remove unthrown exception.
---
 .../commons/collections4/bloomfilter/HasherBloomFilterTest.java      | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/HasherBloomFilterTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/HasherBloomFilterTest.java
index c0c4902..1cba7b6 100644
--- a/src/test/java/org/apache/commons/collections4/bloomfilter/HasherBloomFilterTest.java
+++ b/src/test/java/org/apache/commons/collections4/bloomfilter/HasherBloomFilterTest.java
@@ -19,7 +19,6 @@ package org.apache.commons.collections4.bloomfilter;
 
 import static org.junit.Assert.assertEquals;
 
-import java.security.NoSuchAlgorithmException;
 import org.apache.commons.collections4.bloomfilter.hasher.DynamicHasher;
 import org.apache.commons.collections4.bloomfilter.hasher.Hasher;
 import org.apache.commons.collections4.bloomfilter.hasher.Shape;
@@ -34,11 +33,9 @@ public class HasherBloomFilterTest extends AbstractBloomFilterTest {
 
     /**
      * Tests that the constructor works correctly.
-     * 
-     * @throws NoSuchAlgorithmException
      */
     @Test
-    public void constructorTest_NonStatic() throws NoSuchAlgorithmException {
+    public void constructorTest_NonStatic() {
         final Shape shape = new Shape(new MD5Cyclic(), 3, 72, 17);
         final DynamicHasher hasher = new DynamicHasher.Builder(new MD5Cyclic()).with("Hello").build();
         final HasherBloomFilter filter = createFilter(hasher, shape);