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 0853244  Inline local var.
0853244 is described below

commit 08532446a79aac833941fc5aa8c5379de6d64cfb
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Mar 3 08:23:41 2021 -0500

    Inline local var.
---
 .../java/org/apache/commons/vfs2/provider/local/LocalFileSystem.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileSystem.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileSystem.java
index 3d4af0b..584e47d 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileSystem.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileSystem.java
@@ -68,8 +68,7 @@ public class LocalFileSystem extends AbstractFileSystem {
         final File file = localFile.getLocalFile();
         final SecurityManager sm = System.getSecurityManager();
         if (sm != null) {
-            final FilePermission requiredPerm = new 
FilePermission(file.getAbsolutePath(), "read");
-            sm.checkPermission(requiredPerm);
+            sm.checkPermission(new FilePermission(file.getAbsolutePath(), 
"read"));
         }
         return file;
     }

Reply via email to