Skip to content

Commit 6c69082

Browse files
committed
Java 4 compatibility
1 parent bc89863 commit 6c69082

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/src/test/java/org/bouncycastle/crypto/test/SHA3DigestTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.bouncycastle.crypto.digests.SHA3Digest;
1212
import org.bouncycastle.test.TestResourceFinder;
1313
import org.bouncycastle.util.Arrays;
14+
import org.bouncycastle.util.Exceptions;
1415
import org.bouncycastle.util.encoders.Hex;
1516

1617
/**
@@ -68,7 +69,7 @@ public void performTest()
6869
}
6970
catch (Exception e)
7071
{
71-
throw new IllegalStateException(e.toString(), e);
72+
throw Exceptions.illegalStateException(e.toString(), e);
7273
}
7374
}
7475

core/src/test/java/org/bouncycastle/crypto/test/SHAKEDigestTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.bouncycastle.crypto.digests.SHAKEDigest;
1212
import org.bouncycastle.test.TestResourceFinder;
1313
import org.bouncycastle.util.Arrays;
14+
import org.bouncycastle.util.Exceptions;
1415
import org.bouncycastle.util.encoders.Hex;
1516

1617
/**
@@ -68,7 +69,7 @@ public void performTest()
6869
}
6970
catch (Exception e)
7071
{
71-
throw new IllegalStateException(e.toString(), e);
72+
throw Exceptions.illegalStateException(e.toString(), e);
7273
}
7374
}
7475

0 commit comments

Comments
 (0)