From: David ‘Bombe’ Roden Date: Wed, 7 Oct 2015 18:49:05 +0000 (+0200) Subject: Clean up class constants X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6ee2bd5211b82e4b02b82468d242c91dcc4537f4;p=Sone.git Clean up class constants --- diff --git a/src/main/java/net/pterodactylus/sone/data/Id.java b/src/main/java/net/pterodactylus/sone/data/Id.java index f32627c..75f9bc6 100644 --- a/src/main/java/net/pterodactylus/sone/data/Id.java +++ b/src/main/java/net/pterodactylus/sone/data/Id.java @@ -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;