You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/02/05 19:36:00 UTC
[commons-codec] branch master updated: Add @SuppressWarnings
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push:
new 0fa81539 Add @SuppressWarnings
0fa81539 is described below
commit 0fa81539e2a5ba4e60046d8af5078fea561f1413
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 5 14:35:56 2023 -0500
Add @SuppressWarnings
---
src/main/java/org/apache/commons/codec/digest/DigestUtils.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/apache/commons/codec/digest/DigestUtils.java b/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
index adf3e9d5..fd6294f0 100644
--- a/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
+++ b/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
@@ -1496,6 +1496,7 @@ public class DigestUtils {
* @throws IOException On error reading from the stream
* @since 1.14
*/
+ @SuppressWarnings("resource") // Closing RandomAccessFile closes the channel.
public static MessageDigest updateDigest(final MessageDigest digest, final RandomAccessFile data)
throws IOException {
return updateDigest(digest, data.getChannel());