diff options
Diffstat (limited to 'luni/src/main/java/javax/crypto/KeyGenerator.java')
-rw-r--r-- | luni/src/main/java/javax/crypto/KeyGenerator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/luni/src/main/java/javax/crypto/KeyGenerator.java b/luni/src/main/java/javax/crypto/KeyGenerator.java index 77b1a82..606998a 100644 --- a/luni/src/main/java/javax/crypto/KeyGenerator.java +++ b/luni/src/main/java/javax/crypto/KeyGenerator.java @@ -98,7 +98,7 @@ public class KeyGenerator { public static final KeyGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { - throw new NullPointerException(); + throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyGenerator((KeyGeneratorSpi) sap.spi, sap.provider, algorithm); @@ -158,7 +158,7 @@ public class KeyGenerator { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { - throw new NullPointerException(); + throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new KeyGenerator((KeyGeneratorSpi) spi, provider, algorithm); |