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/25 21:35:26 UTC
[commons-configuration] 09/12: Better local name
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-configuration.git
commit fb8bb2c8acae063cecb8b2e539f463901f6cc681
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Mar 25 17:10:41 2023 -0400
Better local name
---
src/main/java/org/apache/commons/configuration2/io/FileHandler.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/configuration2/io/FileHandler.java b/src/main/java/org/apache/commons/configuration2/io/FileHandler.java
index 6bebf47c..8d76dfdf 100644
--- a/src/main/java/org/apache/commons/configuration2/io/FileHandler.java
+++ b/src/main/java/org/apache/commons/configuration2/io/FileHandler.java
@@ -687,9 +687,9 @@ public class FileHandler {
InputStream in = null;
try {
- final FileSystem obtainFileSystem = FileLocatorUtils.getFileSystem(locator);
+ final FileSystem fileSystem = FileLocatorUtils.getFileSystem(locator);
final URLConnectionOptions urlConnectionOptions = locator.getURLConnectionOptions();
- in = urlConnectionOptions == null ? obtainFileSystem.getInputStream(url) : obtainFileSystem.getInputStream(url, urlConnectionOptions);
+ in = urlConnectionOptions == null ? fileSystem.getInputStream(url) : fileSystem.getInputStream(url, urlConnectionOptions);
loadFromStream(in, locator.getEncoding(), url);
} catch (final ConfigurationException e) {
throw e;