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:10 UTC

[commons-vfs] 05/05: 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-vfs.git

commit 4dfca70b13f4e426bde0ce563de23b61b6b63a13
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Sep 14 12:57:18 2020 -0400

    Use final.
---
 .../java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java
index 19b367f..c78709c 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java
@@ -76,7 +76,7 @@ public class HdfsFileObject extends AbstractFileObject<HdfsFileSystem> {
             return this.hdfs.getFileStatus(new Path(newfile.getName().getPath())) == null;
         } catch (final FileNotFoundException e) {
             return false;
-        } catch (IOException e) {
+        } catch (final IOException e) {
             throw new IllegalStateException(e);
         }
     }
@@ -269,7 +269,7 @@ public class HdfsFileObject extends AbstractFileObject<HdfsFileSystem> {
      * @since 2.7.0
      */
     @Override
-    protected void doRename(FileObject newfile) throws Exception {
+    protected void doRename(final FileObject newfile) throws Exception {
         hdfs.rename(this.path, new Path(newfile.getName().getPath()));
     }
 
@@ -288,7 +288,7 @@ public class HdfsFileObject extends AbstractFileObject<HdfsFileSystem> {
     protected boolean doSetLastModifiedTime(final long modtime) throws Exception {
         try {
             hdfs.setTimes(this.path, modtime, System.currentTimeMillis());
-        } catch (IOException ioe) {
+        } catch (final IOException ioe) {
             throw new FileSystemException(ioe);
         }
         return true;