Upgrade to checkstyle 6.17

Fixes gh-5547
This commit is contained in:
Phillip Webb
2016-03-31 13:12:49 -07:00
parent 4f200a852b
commit 893a6c32f3
23 changed files with 67 additions and 43 deletions

View File

@@ -141,10 +141,10 @@ public class FileSystemWatcher {
this.watchThread = new Thread() {
@Override
public void run() {
int remainingScans = FileSystemWatcher.this.remainingScans.get();
while (remainingScans > 0 || remainingScans == -1) {
int remaining = FileSystemWatcher.this.remainingScans.get();
while (remaining > 0 || remaining == -1) {
try {
if (remainingScans > 0) {
if (remaining > 0) {
FileSystemWatcher.this.remainingScans.decrementAndGet();
}
scan();
@@ -152,7 +152,7 @@ public class FileSystemWatcher {
catch (InterruptedException ex) {
// Ignore
}
remainingScans = FileSystemWatcher.this.remainingScans.get();
remaining = FileSystemWatcher.this.remainingScans.get();
}
};
};