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 3058824 Use isEmpty().
3058824 is described below
commit 3058824c2cd188a9f65f5f23c7cd5b63e278fe94
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 17 09:22:12 2021 -0500
Use isEmpty().
---
.../java/org/apache/commons/vfs2/provider/smb/SmbFileNameParser.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileNameParser.java
b/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileNameParser.java
index 261a3e7..c5adc20 100644
---
a/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileNameParser.java
+++
b/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileNameParser.java
@@ -60,7 +60,7 @@ public class SmbFileNameParser extends URLFileNameParser {
// Extract the share
final String share = UriParser.extractFirstElement(name);
- if (share == null || share.length() == 0) {
+ if (share == null || share.isEmpty()) {
throw new
FileSystemException("vfs.provider.smb/missing-share-name.error", filename);
}