Clean up class constants
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 7 Oct 2015 18:49:05 +0000 (20:49 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 7 Oct 2015 18:49:05 +0000 (20:49 +0200)
src/main/java/net/pterodactylus/sone/data/Id.java

index f32627c..75f9bc6 100644 (file)
@@ -12,10 +12,8 @@ import com.google.common.hash.Hashing;
  */
 public class Id {
 
-       private static final HashFunction HASH_FUNCTION = Hashing.sha256();
-       public static final int LENGTH = HASH_FUNCTION.bits() / 4;
+       private static final HashFunction sha256 = Hashing.sha256();
 
-       private final HashFunction sha256 = HASH_FUNCTION;
        private final String soneId;
        private final String elementId;