You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/01/17 03:29:42 UTC
[commons-io] branch master updated: Use isEmpty().
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-io.git
The following commit(s) were added to refs/heads/master by this push:
new e49d695 Use isEmpty().
e49d695 is described below
commit e49d695a24fed80818b1b1b8097e2dfd05c5f186
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jan 16 22:29:37 2021 -0500
Use isEmpty().
---
src/main/java/org/apache/commons/io/FileCleaningTracker.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/io/FileCleaningTracker.java b/src/main/java/org/apache/commons/io/FileCleaningTracker.java
index 6204e86..6f7208e 100644
--- a/src/main/java/org/apache/commons/io/FileCleaningTracker.java
+++ b/src/main/java/org/apache/commons/io/FileCleaningTracker.java
@@ -215,7 +215,7 @@ public class FileCleaningTracker {
@Override
public void run() {
// thread exits when exitWhenFinished is true and there are no more tracked objects
- while (exitWhenFinished == false || trackers.size() > 0) {
+ while (exitWhenFinished == false || !trackers.isEmpty()) {
try {
// Wait for a tracker to remove.
final Tracker tracker = (Tracker) q.remove(); // cannot return null