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 9dc97a0 Use String#isEmpty().
9dc97a0 is described below
commit 9dc97a0b56800e574c343723bd62f7048dcb6b5c
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Dec 31 11:28:16 2020 -0500
Use String#isEmpty().
---
.../java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
index 890ffdf..f6f07c5 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
@@ -787,7 +787,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
String scheme = UriParser.extractScheme(getSchemes(),
buffer.toString());
// Determine whether to prepend the base path
- if (name.length() == 0 || (scheme == null && buffer.charAt(0) !=
FileName.SEPARATOR_CHAR)) {
+ if (name.isEmpty() || (scheme == null && buffer.charAt(0) !=
FileName.SEPARATOR_CHAR)) {
// Supplied path is not absolute
if (!VFS.isUriStyle()) {
// when using URIs the parent already do have the trailing "/"