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 49b59e5 Use Character cache.
49b59e5 is described below
commit 49b59e586091a10d1b506c68ccc1d2a6fee762d0
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Dec 31 12:06:17 2020 -0500
Use Character cache.
---
.../main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
index d58f730..179d881 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
@@ -183,7 +183,7 @@ public abstract class FileSystemConfigBuilder {
* @since 2.0
*/
protected char getCharacter(final FileSystemOptions fileSystemOptions,
final String name, final char defaultValue) {
- return getCharacter(fileSystemOptions, name, new
Character(defaultValue)).charValue();
+ return getCharacter(fileSystemOptions, name,
Character.valueOf(defaultValue)).charValue();
}
/**
@@ -204,7 +204,7 @@ public abstract class FileSystemConfigBuilder {
if (str == null || str.length() <= 0) {
return defaultValue;
}
- value = new Character(str.charAt(0));
+ value = Character.valueOf(str.charAt(0));
}
return value;
}