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 2022/12/02 13:36:52 UTC
[commons-compress] 02/04: Use final
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-compress.git
commit 5ecf5b3d87c8956156134be87f20435b32d2d287
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Dec 2 07:50:24 2022 -0500
Use final
---
.../java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java b/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
index 2baa585b..002a5da0 100644
--- a/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
+++ b/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
@@ -533,7 +533,7 @@ public class SevenZFile implements Closeable {
channel.position(SIGNATURE_HEADER_SIZE + startHeader.nextHeaderOffset);
if (verifyCrc) {
final long position = channel.position();
- CheckedInputStream cis = new CheckedInputStream(Channels.newInputStream(channel), new CRC32());
+ final CheckedInputStream cis = new CheckedInputStream(Channels.newInputStream(channel), new CRC32());
if (cis.skip(nextHeaderSizeInt) != nextHeaderSizeInt) {
throw new IOException("Problem computing NextHeader CRC-32");
}