Skip to content

Commit d80fbe4

Browse files
committed
Add missing @throws.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744621 13f79535-47bb-0310-9956-ffa450edef68
1 parent b72dee3 commit d80fbe4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/org/apache/commons/codec/digest/DigestUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,8 @@ public DigestUtils update(final String data) {
10721072
* @param data
10731073
* the data to update the {@link MessageDigest} with
10741074
* @return the updated {@link DigestUtils}
1075+
* @throws IOException
1076+
* If some I/O error occurs.
10751077
* @since 1.11
10761078
*/
10771079
public DigestUtils update(final InputStream data) throws IOException {
@@ -1091,6 +1093,10 @@ public DigestUtils update(final InputStream data) throws IOException {
10911093
* @param data
10921094
* the data to update the {@link MessageDigest} with
10931095
* @return the updated {@link DigestUtils}
1096+
* @throws IOException
1097+
* If some I/O error occurs.
1098+
* @throws SecurityException
1099+
* if a security manager exists and its {@code checkRead} method denies read access to the file.
10941100
* @since 1.11
10951101
*/
10961102
public DigestUtils update(final File data) throws IOException {

0 commit comments

Comments
 (0)