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 6d8c3ed Use isEmpty().
6d8c3ed is described below
commit 6d8c3ed86b1a664eb7739752b9c1e6d72f5e82c2
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 17 09:26:17 2021 -0500
Use isEmpty().
---
.../test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
index 90ec462..3d80e04 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
@@ -289,13 +289,13 @@ public abstract class BaseFilterTest {
if (fileName == null) {
throw new IllegalArgumentException("file name cannot be null");
}
- if (fileName.trim().length() == 0) {
+ if (fileName.trim().isEmpty()) {
throw new IllegalArgumentException("file name cannot be empty");
}
if (separator == null) {
throw new IllegalArgumentException("separator cannot be null");
}
- if (separator.trim().length() == 0) {
+ if (separator.trim().isEmpty()) {
throw new IllegalArgumentException("separator cannot be empty");
}
@@ -303,7 +303,7 @@ public abstract class BaseFilterTest {
return fileName;
}
final String trimmedPath = path.trim();
- if (trimmedPath.length() == 0) {
+ if (trimmedPath.isEmpty()) {
return fileName;
}
final String trimmedFilename = fileName.trim();