commit 1e50becd360116dbab2d4d2d5de9695b0fc668df Author: Karsten Loesing karsten.loesing@gmx.net Date: Sun Oct 9 14:37:39 2016 +0200
Fix deprecation warning from Apache Commons Codec. --- src/main/java/org/torproject/onionoo/docs/SummaryDocument.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/torproject/onionoo/docs/SummaryDocument.java b/src/main/java/org/torproject/onionoo/docs/SummaryDocument.java index 133f616..ce8a22a 100644 --- a/src/main/java/org/torproject/onionoo/docs/SummaryDocument.java +++ b/src/main/java/org/torproject/onionoo/docs/SummaryDocument.java @@ -59,7 +59,7 @@ public class SummaryDocument extends Document { public String getHashedFingerprint() { if (this.hashedFingerprint == null && this.f != null) { try { - this.hashedFingerprint = DigestUtils.shaHex(Hex.decodeHex( + this.hashedFingerprint = DigestUtils.sha1Hex(Hex.decodeHex( this.f.toCharArray())).toUpperCase(); } catch (DecoderException e) { /* Format tested in setFingerprint(). */
tor-commits@lists.torproject.org