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 6b1643e Use isEmpty().
6b1643e is described below
commit 6b1643e7fa903ad5424bad62afa670e3ad40fcff
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 17 10:36:52 2021 -0500
Use isEmpty().
---
.../main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java | 6 +++---
1 file changed, 3 insertions(+), 3 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 179d881..43408da 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
@@ -201,7 +201,7 @@ public abstract class FileSystemConfigBuilder {
Character value = (Character) getParam(fileSystemOptions, name);
if (value == null) {
final String str = getProperty(name);
- if (str == null || str.length() <= 0) {
+ if (str == null || str.isEmpty()) {
return defaultValue;
}
value = Character.valueOf(str.charAt(0));
@@ -263,7 +263,7 @@ public abstract class FileSystemConfigBuilder {
Double value = (Double) getParam(fileSystemOptions, name);
if (value == null) {
final String str = getProperty(name);
- if (str == null || str.length() <= 0) {
+ if (str == null || str.isEmpty()) {
return defaultValue;
}
value = Double.valueOf(str);
@@ -363,7 +363,7 @@ public abstract class FileSystemConfigBuilder {
Float value = (Float) getParam(fileSystemOptions, name);
if (value == null) {
final String str = getProperty(name);
- if (str == null || str.length() <= 0) {
+ if (str == null || str.isEmpty()) {
return defaultValue;
}
value = Float.valueOf(str);