summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDavid Gilbert <david.gilbert@object-refinery.com>2006-04-21 10:35:35 +0000
committerDavid Gilbert <david.gilbert@object-refinery.com>2006-04-21 10:35:35 +0000
commit324430fd7cd7017fd94e98e0c2f317c66d2106aa (patch)
tree2281c739483fd573dc99c07de25ffcafbcbdda21 /gnu
parentcd909b1a8c1a260614ba652bf544ec746f03a72d (diff)
downloadclasspath-324430fd7cd7017fd94e98e0c2f317c66d2106aa.tar.gz
2006-04-21 David Gilbert <david.gilbert@object-refinery.com>
* gnu/java/security/hash/Haval.java: (selfTest): Use Boolean.valueOf() to avoid creating new Boolean instance, * gnu/java/security/hash/MD2.java: (selfTest): Likewise, * gnu/java/security/hash/MD4.java: (selfTest): Likewise, * gnu/java/security/hash/MD5.java: (selfTest): Likewise, * gnu/java/security/hash/RipeMD128.java: (selfTest): Likewise, * gnu/java/security/hash/RipeMD160.java: (selfTest): Likewise, * gnu/java/security/hash/Sha160.java: (selfTest): Likewise, * gnu/java/security/hash/Sha256.java: (selfTest): Likewise, * gnu/java/security/hash/Sha384.java: (selfTest): Likewise, * gnu/java/security/hash/Sha512.java: (selfTest): Likewise, * gnu/java/security/hash/Tiger.java: (selfTest): Likewise, * gnu/java/security/hash/Whirlpool.java: (selfTest): Likewise. ----------------------------------------------------------------------
Diffstat (limited to 'gnu')
-rw-r--r--gnu/java/security/hash/Haval.java2
-rw-r--r--gnu/java/security/hash/MD2.java2
-rw-r--r--gnu/java/security/hash/MD4.java2
-rw-r--r--gnu/java/security/hash/MD5.java2
-rw-r--r--gnu/java/security/hash/RipeMD128.java2
-rw-r--r--gnu/java/security/hash/RipeMD160.java2
-rw-r--r--gnu/java/security/hash/Sha160.java2
-rw-r--r--gnu/java/security/hash/Sha256.java2
-rw-r--r--gnu/java/security/hash/Sha384.java2
-rw-r--r--gnu/java/security/hash/Sha512.java2
-rw-r--r--gnu/java/security/hash/Tiger.java2
-rw-r--r--gnu/java/security/hash/Whirlpool.java2
12 files changed, 12 insertions, 12 deletions
diff --git a/gnu/java/security/hash/Haval.java b/gnu/java/security/hash/Haval.java
index f9f3282f2..1bf75652d 100644
--- a/gnu/java/security/hash/Haval.java
+++ b/gnu/java/security/hash/Haval.java
@@ -567,7 +567,7 @@ public class Haval extends BaseHash
{
if (valid == null)
{
- valid = new Boolean(DIGEST0.equals(Util.toString(new Haval().digest())));
+ valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Haval().digest())));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/MD2.java b/gnu/java/security/hash/MD2.java
index 41e876983..2a93c42c4 100644
--- a/gnu/java/security/hash/MD2.java
+++ b/gnu/java/security/hash/MD2.java
@@ -181,7 +181,7 @@ public class MD2 extends BaseHash
{
if (valid == null)
{
- valid = new Boolean(DIGEST0.equals(Util.toString(new MD2().digest())));
+ valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD2().digest())));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/MD4.java b/gnu/java/security/hash/MD4.java
index 54dda358b..a09eb1705 100644
--- a/gnu/java/security/hash/MD4.java
+++ b/gnu/java/security/hash/MD4.java
@@ -154,7 +154,7 @@ public class MD4 extends BaseHash
{
if (valid == null)
{
- valid = new Boolean(DIGEST0.equals(Util.toString(new MD4().digest())));
+ valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD4().digest())));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/MD5.java b/gnu/java/security/hash/MD5.java
index 463292984..165392394 100644
--- a/gnu/java/security/hash/MD5.java
+++ b/gnu/java/security/hash/MD5.java
@@ -358,7 +358,7 @@ public class MD5 extends BaseHash
{
if (valid == null)
{
- valid = new Boolean(DIGEST0.equals(Util.toString(new MD5().digest())));
+ valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD5().digest())));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/RipeMD128.java b/gnu/java/security/hash/RipeMD128.java
index 83e8f2504..31874a0c2 100644
--- a/gnu/java/security/hash/RipeMD128.java
+++ b/gnu/java/security/hash/RipeMD128.java
@@ -283,7 +283,7 @@ public class RipeMD128 extends BaseHash
{
if (valid == null)
{
- valid = new Boolean
+ valid = Boolean.valueOf
(DIGEST0.equals(Util.toString(new RipeMD128().digest())));
}
return valid.booleanValue();
diff --git a/gnu/java/security/hash/RipeMD160.java b/gnu/java/security/hash/RipeMD160.java
index 73ecc5161..642ffb32d 100644
--- a/gnu/java/security/hash/RipeMD160.java
+++ b/gnu/java/security/hash/RipeMD160.java
@@ -320,7 +320,7 @@ public class RipeMD160 extends BaseHash
{
if (valid == null)
{
- valid = new Boolean
+ valid = Boolean.valueOf
(DIGEST0.equals(Util.toString(new RipeMD160().digest())));
}
return valid.booleanValue();
diff --git a/gnu/java/security/hash/Sha160.java b/gnu/java/security/hash/Sha160.java
index bf5f45652..037b118e6 100644
--- a/gnu/java/security/hash/Sha160.java
+++ b/gnu/java/security/hash/Sha160.java
@@ -229,7 +229,7 @@ public class Sha160 extends BaseHash
md.update((byte) 0x62); // b
md.update((byte) 0x63); // c
String result = Util.toString(md.digest());
- valid = new Boolean(DIGEST0.equals(result));
+ valid = Boolean.valueOf(DIGEST0.equals(result));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/Sha256.java b/gnu/java/security/hash/Sha256.java
index 9ef70a1a6..284425ea4 100644
--- a/gnu/java/security/hash/Sha256.java
+++ b/gnu/java/security/hash/Sha256.java
@@ -217,7 +217,7 @@ public class Sha256 extends BaseHash
md.update((byte) 0x62); // b
md.update((byte) 0x63); // c
String result = Util.toString(md.digest());
- valid = new Boolean(DIGEST0.equals(result));
+ valid = Boolean.valueOf(DIGEST0.equals(result));
}
return valid.booleanValue();
diff --git a/gnu/java/security/hash/Sha384.java b/gnu/java/security/hash/Sha384.java
index 2f619dc98..332f048d7 100644
--- a/gnu/java/security/hash/Sha384.java
+++ b/gnu/java/security/hash/Sha384.java
@@ -254,7 +254,7 @@ public class Sha384 extends BaseHash
md.update((byte) 0x62); // b
md.update((byte) 0x63); // c
String result = Util.toString(md.digest());
- valid = new Boolean(DIGEST0.equals(result));
+ valid = Boolean.valueOf(DIGEST0.equals(result));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/Sha512.java b/gnu/java/security/hash/Sha512.java
index 798b34dfc..da035dcfc 100644
--- a/gnu/java/security/hash/Sha512.java
+++ b/gnu/java/security/hash/Sha512.java
@@ -256,7 +256,7 @@ public class Sha512 extends BaseHash
md.update((byte) 0x62); // b
md.update((byte) 0x63); // c
String result = Util.toString(md.digest());
- valid = new Boolean(DIGEST0.equals(result));
+ valid = Boolean.valueOf(DIGEST0.equals(result));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/Tiger.java b/gnu/java/security/hash/Tiger.java
index f39fed30d..be0921dce 100644
--- a/gnu/java/security/hash/Tiger.java
+++ b/gnu/java/security/hash/Tiger.java
@@ -640,7 +640,7 @@ public class Tiger extends BaseHash
{
if (valid == null)
{
- valid = new Boolean(DIGEST0.equals(Util.toString(new Tiger().digest())));
+ valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Tiger().digest())));
}
return valid.booleanValue();
}
diff --git a/gnu/java/security/hash/Whirlpool.java b/gnu/java/security/hash/Whirlpool.java
index 95a4515d9..b10fa53cd 100644
--- a/gnu/java/security/hash/Whirlpool.java
+++ b/gnu/java/security/hash/Whirlpool.java
@@ -642,7 +642,7 @@ public final class Whirlpool extends BaseHash
public boolean selfTest()
{
if (valid == null)
- valid = new Boolean(DIGEST0.equals(Util.toString(new Whirlpool().digest())));
+ valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Whirlpool().digest())));
return valid.booleanValue();
}