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 32dcf23584e53dd05beecac1a6c7b025e3d2be15
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Nov 4 11:46:26 2023 -0400

    Better local name
---
 .../compressors/pack200/TempFileCachingStreamBridge.java    | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/compress/compressors/pack200/TempFileCachingStreamBridge.java
 
b/src/main/java/org/apache/commons/compress/compressors/pack200/TempFileCachingStreamBridge.java
index 6bc00426..3f3601c3 100644
--- 
a/src/main/java/org/apache/commons/compress/compressors/pack200/TempFileCachingStreamBridge.java
+++ 
b/src/main/java/org/apache/commons/compress/compressors/pack200/TempFileCachingStreamBridge.java
@@ -32,26 +32,27 @@ import java.nio.file.Path;
  * @since 1.3
  */
 class TempFileCachingStreamBridge extends AbstractStreamBridge {
-    private final Path f;
+
+    private final Path path;
 
     TempFileCachingStreamBridge() throws IOException {
-        f = Files.createTempFile("commons-compress", "packtemp");
-        f.toFile().deleteOnExit();
-        out = Files.newOutputStream(f);
+        this.path = Files.createTempFile("commons-compress", "packtemp");
+        this.path.toFile().deleteOnExit();
+        this.out = Files.newOutputStream(path);
     }
 
     @SuppressWarnings("resource") // Caller closes
     @Override
     InputStream getInputView() throws IOException {
         out.close();
-        return new FilterInputStream(Files.newInputStream(f)) {
+        return new FilterInputStream(Files.newInputStream(path)) {
             @Override
             public void close() throws IOException {
                 try {
                     super.close();
                 } finally {
                     try {
-                        Files.deleteIfExists(f);
+                        Files.deleteIfExists(path);
                     } catch (final IOException ignore) {
                         // if this fails the only thing we can do is to rely 
on deleteOnExit
                     }

Reply via email to