Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
Require Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Dec 10, 2023
1 parent 3de18d3 commit c0b139f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</distributionManagement>

<properties>
<javaVersion>8</javaVersion>
<project.build.outputTimestamp>2020-01-20T18:52:37Z</project.build.outputTimestamp>
</properties>

Expand Down
18 changes: 4 additions & 14 deletions src/test/java/org/codehaus/plexus/digest/DigesterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import org.codehaus.plexus.PlexusTestCase;

import java.io.File;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;

/**
* Test the digester.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit c0b139f

Please sign in to comment.