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/01/01 14:14:35 UTC
[commons-compress] 03/06: 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 0b4a04e508b20a5dedb9c4e45f88e3b691630b07
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 1 08:58:56 2023 -0500
Use final
---
.../commons/compress/archivers/jar/JarArchiveOutputStreamTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java
index 1a94e4e7..d050865e 100644
--- a/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java
@@ -45,12 +45,12 @@ public class JarArchiveOutputStreamTest {
try {
out = new JarArchiveOutputStream(Files.newOutputStream(testArchive.toPath()));
- ZipArchiveEntry ze1 = new ZipArchiveEntry("foo/");
+ final ZipArchiveEntry ze1 = new ZipArchiveEntry("foo/");
// Ensure we won't accidentally add an Extra field.
ze1.setTime(Instant.parse("2022-12-27T12:10:23Z").toEpochMilli());
out.putArchiveEntry(ze1);
out.closeArchiveEntry();
- ZipArchiveEntry ze2 = new ZipArchiveEntry("bar/");
+ final ZipArchiveEntry ze2 = new ZipArchiveEntry("bar/");
// Ensure we won't accidentally add an Extra field.
ze2.setTime(Instant.parse("2022-12-28T02:56:01Z").toEpochMilli());
out.putArchiveEntry(ze2);