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/09/14 16:58:07 UTC

[commons-vfs] 02/05: Better local var name.

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-vfs.git

commit 8b246d42ddfaeea1d0827a78d5872cab35ca54e6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Sep 14 12:55:59 2020 -0400

    Better local var name.
---
 .../commons/vfs2/provider/hdfs/HdfsFileSystem.java   | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
index 72b60b4..f45caf8 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
@@ -150,14 +150,14 @@ public class HdfsFileSystem extends AbstractFileSystem {
             }
         }
 
-        final boolean useCache = null != getContext().getFileSystemManager().getFilesCache();
-        FileObject file;
+        final boolean useCache = null != getFileSystemManager().getFilesCache();
+        FileObject fileObject;
         if (useCache) {
-            file = this.getFileFromCache(name);
+            fileObject = this.getFileFromCache(name);
         } else {
-            file = null;
+            fileObject = null;
         }
-        if (null == file) {
+        if (null == fileObject) {
             String path = null;
             try {
                 path = URLDecoder.decode(name.getPath(), "UTF-8");
@@ -165,19 +165,19 @@ public class HdfsFileSystem extends AbstractFileSystem {
                 path = name.getPath();
             }
             final Path filePath = new Path(path);
-            file = new HdfsFileObject((AbstractFileName) name, this, fs, filePath);
-            file = decorateFileObject(file);
+            fileObject = new HdfsFileObject((AbstractFileName) name, this, fs, filePath);
+            fileObject = decorateFileObject(fileObject);
             if (useCache) {
-                this.putFileToCache(file);
+                this.putFileToCache(fileObject);
             }
         }
         /**
          * resync the file information if requested
          */
         if (getFileSystemManager().getCacheStrategy().equals(CacheStrategy.ON_RESOLVE)) {
-            file.refresh();
+            fileObject.refresh();
         }
-        return file;
+        return fileObject;
     }
 
 }