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 2021/11/28 15:14:22 UTC

[commons-vfs] branch master updated: Fix Checkstyle RightCurly.

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


The following commit(s) were added to refs/heads/master by this push:
     new f6e9ff4  Fix Checkstyle RightCurly.
f6e9ff4 is described below

commit f6e9ff4f0ea8aa720d42711b54b05c57078b4526
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 28 10:14:19 2021 -0500

    Fix Checkstyle RightCurly.
---
 .../java/org/apache/commons/vfs2/provider/DelegateFileObject.java    | 5 ++---
 .../org/apache/commons/vfs2/provider/res/ResourceFileProvider.java   | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DelegateFileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DelegateFileObject.java
index 5a818c5..c293b43 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DelegateFileObject.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DelegateFileObject.java
@@ -191,9 +191,8 @@ public class DelegateFileObject<AFS extends AbstractFileSystem> extends Abstract
 
             try {
                 children = file.getChildren();
-            }
-            // VFS-210
-            catch (final FileNotFolderException e) {
+            } catch (final FileNotFolderException e) {
+                // VFS-210
                 throw new FileNotFolderException(getName(), e);
             }
 
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
index 0be1cda..ab73088 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
@@ -57,12 +57,11 @@ public class ResourceFileProvider extends AbstractFileProvider {
      */
     @Override
     public FileObject findFile(final FileObject baseFile, final String uri, final FileSystemOptions fileSystemOptions)
-            throws FileSystemException {
+        throws FileSystemException {
         final FileName fileName;
         if (baseFile != null) {
             fileName = parseUri(baseFile.getName(), uri);
-        }
-        else {
+        } else {
             fileName = parseUri(null, uri);
         }
         final String resourceName = fileName.getPath();