From c0b139fb04fe9f5a60611a836c2ae1155bf05667 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Sun, 10 Dec 2023 12:55:05 +0100 Subject: [PATCH] Require Java 8 --- pom.xml | 1 + .../codehaus/plexus/digest/DigesterTest.java | 18 ++++-------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index 8fea76a..0a06335 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,7 @@ + 8 2020-01-20T18:52:37Z diff --git a/src/test/java/org/codehaus/plexus/digest/DigesterTest.java b/src/test/java/org/codehaus/plexus/digest/DigesterTest.java index a6a0fa4..f64b14c 100644 --- a/src/test/java/org/codehaus/plexus/digest/DigesterTest.java +++ b/src/test/java/org/codehaus/plexus/digest/DigesterTest.java @@ -19,8 +19,6 @@ import org.codehaus.plexus.PlexusTestCase; import java.io.File; -import java.io.IOException; -import java.security.NoSuchAlgorithmException; /** * Test the digester. @@ -55,9 +53,7 @@ public void testAlgorithm() assertEquals( "MD5", md5Digest.getAlgorithm() ); } - public void testBareDigestFormat() - throws DigesterException, IOException - { + public void testBareDigestFormat() { File file = new File( getClass().getResource( "/test-file.txt" ).getPath() ); try @@ -89,9 +85,7 @@ public void testBareDigestFormat() } } - public void testOpensslDigestFormat() - throws IOException, DigesterException - { + public void testOpensslDigestFormat() { File file = new File( getClass().getResource( "/test-file.txt" ).getPath() ); try @@ -151,9 +145,7 @@ public void testOpensslDigestFormat() } } - public void testGnuDigestFormat() - throws NoSuchAlgorithmException, IOException, DigesterException - { + public void testGnuDigestFormat() { File file = new File( getClass().getResource( "/test-file.txt" ).getPath() ); try @@ -213,9 +205,7 @@ public void testGnuDigestFormat() } } - public void testUntrimmedContent() - throws NoSuchAlgorithmException, IOException - { + public void testUntrimmedContent() { File file = new File( getClass().getResource( "/test-file.txt" ).getPath() ); try {