commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1744621 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
Date Thu, 19 May 2016 19:11:38 GMT
Author: ggregory
Date: Thu May 19 19:11:38 2016
New Revision: 1744621

URL: http://svn.apache.org/viewvc?rev=1744621&view=rev
Log:
Add missing @throws.

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=1744621&r1=1744620&r2=1744621&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
Thu May 19 19:11:38 2016
@@ -1072,6 +1072,8 @@ public static byte[] sha(final byte[] da
      * @param data
      *            the data to update the {@link MessageDigest} with
      * @return the updated {@link DigestUtils}
+     * @throws IOException
+     *             If some I/O error occurs.
      * @since 1.11
      */
     public DigestUtils update(final InputStream data) throws IOException {
@@ -1091,6 +1093,10 @@ public static byte[] sha(final byte[] da
      * @param data
      *            the data to update the {@link MessageDigest} with
      * @return the updated {@link DigestUtils}
+     * @throws IOException
+     *             If some I/O error occurs.
+     * @throws SecurityException
+     *             if a security manager exists and its {@code checkRead} method denies read
access to the file.
      * @since 1.11
      */
     public DigestUtils update(final File data) throws IOException {



Mime
View raw message