[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [onionoo/master] Fix deprecation warning from Apache Commons Codec.



commit 1e50becd360116dbab2d4d2d5de9695b0fc668df
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits