commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherb...@apache.org
Subject [commons-collections] 10/12: Remove unthrown exception.
Date Mon, 17 Feb 2020 14:10:40 GMT
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.herbert@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);


Mime
View raw message