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 6b54382 No need to split declaration from initialization.
6b54382 is described below
commit 6b54382bfa0b674b5784d63297fb2aab8f0b37a6
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Oct 5 15:50:04 2019 -0400
No need to split declaration from initialization.
---
.../java/org/apache/commons/vfs2/provider/AbstractFileSystem.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
index 61f7a14..8132328 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
@@ -193,13 +193,12 @@ public abstract class AbstractFileSystem extends
AbstractVfsComponent implements
}
private FilesCache getFilesCache() {
- FilesCache files;
- files = getContext().getFileSystemManager().getFilesCache();
- if (files == null) {
+ final FilesCache filesCache =
getContext().getFileSystemManager().getFilesCache();
+ if (filesCache == null) {
throw new
RuntimeException(Messages.getString("vfs.provider/files-cache-missing.error"));
}
- return files;
+ return filesCache;
}
/**