diff options
Diffstat (limited to 'gnu/java/security/hash')
-rw-r--r-- | gnu/java/security/hash/HashFactory.java | 6 | ||||
-rw-r--r-- | gnu/java/security/hash/Whirlpool.java | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/gnu/java/security/hash/HashFactory.java b/gnu/java/security/hash/HashFactory.java index 1210ff4db..688afc4c9 100644 --- a/gnu/java/security/hash/HashFactory.java +++ b/gnu/java/security/hash/HashFactory.java @@ -1,5 +1,5 @@ /* HashFactory.java -- - Copyright (C) 2001, 2002, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003, 2006, 2014 Free Software Foundation, Inc. This file is a part of GNU Classpath. @@ -114,9 +114,9 @@ public class HashFactory * * @return a {@link Set} of hash names (Strings). */ - public static final Set getNames() + public static final Set<String> getNames() { - HashSet hs = new HashSet(); + HashSet<String> hs = new HashSet<String>(); hs.add(Registry.WHIRLPOOL_HASH); hs.add(Registry.RIPEMD128_HASH); hs.add(Registry.RIPEMD160_HASH); diff --git a/gnu/java/security/hash/Whirlpool.java b/gnu/java/security/hash/Whirlpool.java index 29eed59ba..bb1174e2e 100644 --- a/gnu/java/security/hash/Whirlpool.java +++ b/gnu/java/security/hash/Whirlpool.java @@ -1,5 +1,5 @@ /* Whirlpool.java -- - Copyright (C) 2001, 2002, 2006, 2010 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2006, 2010, 2014 Free Software Foundation, Inc. This file is a part of GNU Classpath. @@ -136,7 +136,6 @@ public final class Whirlpool int i, r, j; long s1, s2, s4, s5, s8, s9, t; char c; - final byte[] S = new byte[256]; for (i = 0; i < 256; i++) { c = S_box.charAt(i >>> 1); |