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 2023/03/24 12:42:22 UTC

[commons-vfs] branch master updated: Inline single use local

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 e2ea9ab2 Inline single use local
     new 0a8d8976 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-vfs.git
e2ea9ab2 is described below

commit e2ea9ab24c034379e4d9ff72486954141d5395f8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Mar 24 08:41:42 2023 -0400

    Inline single use local
---
 .../src/main/java/org/apache/commons/vfs2/FileSystemOptions.java       | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java
index 4082c2ee..d9fc5a86 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java
@@ -194,8 +194,7 @@ public final class FileSystemOptions implements Cloneable, Comparable<FileSystem
     }
 
     <T> T getOption(final Class<? extends FileSystem> fileSystemClass, final String name) {
-        final FileSystemOptionKey key = new FileSystemOptionKey(fileSystemClass, name);
-        return (T) options.get(key);
+        return (T) options.get(new FileSystemOptionKey(fileSystemClass, name));
     }
 
     @Override