this.timeStamp = file.lastModified();
}
+ @Override
public final void run() {
- long timeStamp = file.lastModified();
+ long newTimeStamp = file.lastModified();
- if ((timeStamp - this.timeStamp) > 500) {
- this.timeStamp = timeStamp;
+ if ((newTimeStamp - this.timeStamp) > 500) {
+ this.timeStamp = newTimeStamp;
onChange(file);
}
}
protected abstract void onChange(File file);
-}
\ No newline at end of file
+}