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 2020/11/01 15:01:06 UTC

[commons-compress] 01/08: 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 82f740156c8f8c1f7d713ea33b5e9ab08b3ab3dc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 1 08:45:51 2020 -0500

    Use final.
---
 .../java/org/apache/commons/compress/archivers/zip/ZipFileTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
index 6b6feee..955e15a 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
@@ -781,7 +781,7 @@ public class ZipFileTest {
         OutputStream outputStream = null;
         InputStream inputStream = null;
         final byte[] testData = new byte[]{1, 2, 3, 4};
-        byte[] buffer = new byte[512];
+        final byte[] buffer = new byte[512];
         int bytesRead;
         try (InputStream unzipsfxInputStream = new FileInputStream(unzipsfx)) {
             outputStream = new FileOutputStream(testZip);
@@ -791,7 +791,7 @@ public class ZipFileTest {
                 zo.writePreamble(buffer, 0, bytesRead);
             }
 
-            ZipArchiveEntry ze = new ZipArchiveEntry(testEntryName);
+            final ZipArchiveEntry ze = new ZipArchiveEntry(testEntryName);
             ze.setMethod(ZipEntry.STORED);
             ze.setSize(4);
             ze.setCrc(0xb63cfbcdL);