We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fca6d71 commit 91fcaf5Copy full SHA for 91fcaf5
core/src/main/java/org/bouncycastle/crypto/util/DerUtil.java
@@ -6,6 +6,7 @@
6
import org.bouncycastle.asn1.ASN1Primitive;
7
import org.bouncycastle.asn1.DEROctetString;
8
import org.bouncycastle.util.Arrays;
9
+import org.bouncycastle.util.Exceptions;
10
11
class DerUtil
12
{
@@ -27,13 +28,7 @@ static byte[] toByteArray(ASN1Primitive primitive)
27
28
}
29
catch (final IOException e)
30
- throw new IllegalStateException("Cannot get encoding: " + e.getMessage())
31
- {
32
- public Throwable getCause()
33
34
- return e;
35
- }
36
- };
+ throw Exceptions.illegalStateException("Cannot get encoding: " + e.getMessage(), e)
37
38
39
0 commit comments