summaryrefslogtreecommitdiffstats
path: root/luni/src/main/java/javax/crypto/KeyAgreement.java
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-05-13 12:36:25 -0700
committerElliott Hughes <enh@google.com>2010-05-13 12:49:12 -0700
commitf33eae7e84eb6d3b0f4e86b59605bb3de73009f3 (patch)
treef6cb62c04ce2669d2fa4715fbab86d38c8fca06d /luni/src/main/java/javax/crypto/KeyAgreement.java
parentd21d78fd49a2d798218e8c8aefbddb26a0e71bbb (diff)
downloadlibcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.zip
libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.gz
libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.bz2
Remove all trailing whitespace from the dalvik team-maintained parts of libcore.
Gentlemen, you may now set your editors to "strip trailing whitespace"... Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
Diffstat (limited to 'luni/src/main/java/javax/crypto/KeyAgreement.java')
-rw-r--r--luni/src/main/java/javax/crypto/KeyAgreement.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/luni/src/main/java/javax/crypto/KeyAgreement.java b/luni/src/main/java/javax/crypto/KeyAgreement.java
index ee561a9..ac3d56c 100644
--- a/luni/src/main/java/javax/crypto/KeyAgreement.java
+++ b/luni/src/main/java/javax/crypto/KeyAgreement.java
@@ -38,7 +38,7 @@ import org.apache.harmony.security.fortress.Engine;
public class KeyAgreement {
// Used to access common engine functionality
- private static final Engine engine = new Engine("KeyAgreement");
+ private static final Engine engine = new Engine("KeyAgreement");
// Store SecureRandom
private static final SecureRandom rndm = new SecureRandom();
@@ -101,7 +101,7 @@ public class KeyAgreement {
public static final KeyAgreement 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);
@@ -133,7 +133,7 @@ public class KeyAgreement {
String provider) throws NoSuchAlgorithmException,
NoSuchProviderException {
if ((provider == null) || (provider.length() == 0)) {
- throw new IllegalArgumentException(Messages.getString("crypto.03"));
+ throw new IllegalArgumentException(Messages.getString("crypto.03"));
}
Provider impProvider = Security.getProvider(provider);
if (impProvider == null) {
@@ -163,10 +163,10 @@ public class KeyAgreement {
public static final KeyAgreement getInstance(String algorithm,
Provider provider) throws NoSuchAlgorithmException {
if (provider == null) {
- throw new IllegalArgumentException(Messages.getString("crypto.04"));
+ throw new IllegalArgumentException(Messages.getString("crypto.04"));
}
if (algorithm == null) {
- throw new NullPointerException(Messages.getString("crypto.02"));
+ throw new NullPointerException(Messages.getString("crypto.02"));
}
synchronized (engine) {
engine.getInstance(algorithm, provider, null);