Skip to content

Commit 0fa8153

Browse files
committed
1 parent cf79bed commit 0fa8153

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final Path
14961496
* @throws IOException On error reading from the stream
14971497
* @since 1.14
14981498
*/
1499+
@SuppressWarnings("resource") // Closing RandomAccessFile closes the channel.
14991500
public static MessageDigest updateDigest(final MessageDigest digest, final RandomAccessFile data)
15001501
throws IOException {
15011502
return updateDigest(digest, data.getChannel());

0 commit comments

Comments
 (0)