Closes gh-11720
This commit is contained in:
Johnny Lim
2018-01-23 01:24:16 +09:00
committed by Phillip Webb
parent 55f44dc510
commit 768e7c07e6
16 changed files with 20 additions and 21 deletions

View File

@@ -186,7 +186,7 @@ public class FileSystemWatcher {
* @param remainingScans the number of remaining scans
*/
void stopAfter(int remainingScans) {
Thread thread = null;
Thread thread;
synchronized (this.monitor) {
thread = this.watchThread;
if (thread != null) {