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/11/26 17:10:12 UTC
[commons-vfs] 09/16: Better internal name.
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
commit d72a9d47df14b8ab923965a848bb440f5b194285
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 26 10:35:24 2021 -0500
Better internal name.
---
.../java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
index db04237..a1200cf 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
@@ -294,7 +294,7 @@ public class DefaultFileMonitor implements Runnable, FileMonitor {
/**
* A flag used to determine if the monitor thread should be running.
*/
- private volatile boolean shouldRun = true; // used for inter-thread communication
+ private volatile boolean runFlag = true; // used for inter-thread communication
/**
* A flag used to determine if adding files to be monitored should be recursive.
@@ -456,7 +456,7 @@ public class DefaultFileMonitor implements Runnable, FileMonitor {
*/
@Override
public void run() {
- mainloop: while (!monitorThread.isInterrupted() && this.shouldRun) {
+ mainloop: while (!monitorThread.isInterrupted() && this.runFlag) {
// For each entry in the map
final Object[] fileNames;
synchronized (this.monitorMap) {
@@ -480,7 +480,7 @@ public class DefaultFileMonitor implements Runnable, FileMonitor {
}
}
- if (monitorThread.isInterrupted() || !this.shouldRun) {
+ if (monitorThread.isInterrupted() || !this.runFlag) {
continue mainloop;
}
}
@@ -500,7 +500,7 @@ public class DefaultFileMonitor implements Runnable, FileMonitor {
}
}
- this.shouldRun = true;
+ this.runFlag = true;
}
/**
@@ -558,7 +558,7 @@ public class DefaultFileMonitor implements Runnable, FileMonitor {
* Stops monitoring the files that have been added.
*/
public void stop() {
- this.shouldRun = false;
+ this.runFlag = false;
if (this.monitorThread != null) {
this.monitorThread.interrupt();
try {