summaryrefslogtreecommitdiffstats
path: root/luni/src/main/java/javax/crypto/ExemptionMechanism.java
diff options
context:
space:
mode:
Diffstat (limited to 'luni/src/main/java/javax/crypto/ExemptionMechanism.java')
-rw-r--r--luni/src/main/java/javax/crypto/ExemptionMechanism.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/luni/src/main/java/javax/crypto/ExemptionMechanism.java b/luni/src/main/java/javax/crypto/ExemptionMechanism.java
index a746d6e..394bcc5 100644
--- a/luni/src/main/java/javax/crypto/ExemptionMechanism.java
+++ b/luni/src/main/java/javax/crypto/ExemptionMechanism.java
@@ -100,7 +100,7 @@ public class ExemptionMechanism {
public static final ExemptionMechanism getInstance(String algorithm)
throws NoSuchAlgorithmException {
if (algorithm == null) {
- throw new NullPointerException(Messages.getString("crypto.02"));
+ throw new NullPointerException(Messages.getString("crypto.02"));
}
synchronized (engine) {
engine.getInstance(algorithm, null);
@@ -132,14 +132,14 @@ public class ExemptionMechanism {
String provider) throws NoSuchAlgorithmException,
NoSuchProviderException {
if (provider == null) {
- throw new IllegalArgumentException(Messages.getString("crypto.04"));
+ throw new IllegalArgumentException(Messages.getString("crypto.04"));
}
Provider impProvider = Security.getProvider(provider);
if (impProvider == null) {
throw new NoSuchProviderException(provider);
}
if (algorithm == null) {
- throw new NullPointerException(Messages.getString("crypto.02"));
+ throw new NullPointerException(Messages.getString("crypto.02"));
}
return getInstance(algorithm, impProvider);
}
@@ -164,10 +164,10 @@ public class ExemptionMechanism {
public static final ExemptionMechanism getInstance(String algorithm,
Provider provider) throws NoSuchAlgorithmException {
if (algorithm == null) {
- throw new NullPointerException(Messages.getString("crypto.02"));
+ throw new NullPointerException(Messages.getString("crypto.02"));
}
if (provider == null) {
- throw new IllegalArgumentException(Messages.getString("crypto.04"));
+ throw new IllegalArgumentException(Messages.getString("crypto.04"));
}
synchronized (engine) {
engine.getInstance(algorithm, provider, null);