commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1380823 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
Date Tue, 04 Sep 2012 19:31:58 GMT
Author: ggregory
Date: Tue Sep  4 19:31:58 2012
New Revision: 1380823

URL: http://svn.apache.org/viewvc?rev=1380823&view=rev
Log:
Deprecate SHA APIs in favor of SHA-1 APIs.

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java?rev=1380823&r1=1380822&r2=1380823&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
Tue Sep  4 19:31:58 2012
@@ -184,7 +184,9 @@ public class DigestUtils {
      * @return An SHA-1 digest instance.
      * @throws IllegalArgumentException
      *             when a {@link NoSuchAlgorithmException} is caught
+     * @deprecated Use {@link #getSha1Digest()}
      */
+    @Deprecated
     public static MessageDigest getShaDigest() {
         return getDigest("SHA");
     }



Mime
View raw message