diff options
author | rama-huawei <rama.subba.reddy.s@huawei.com> | 2017-09-28 15:56:00 +0530 |
---|---|---|
committer | Rama SubbaReddy <rama.subba.reddy.s@huawei.com> | 2017-09-28 11:02:49 +0000 |
commit | 71088aaf4cf7d8d7182bd0cfe9943781e1538d44 (patch) | |
tree | 7344da0d4f95c90894c807fca9cabcdde6229f53 /src/main/java/org/openecomp/datarouter/util/FileWatcher.java | |
parent | 44565e3e7b6927926293f067a270367f4dff7150 (diff) |
Added the "@Override" annotation
Issue-id: CIMAN-65
Change-Id: I5893ee1af1a0b5db6ec5162acb91456f4c28c734
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'src/main/java/org/openecomp/datarouter/util/FileWatcher.java')
-rw-r--r-- | src/main/java/org/openecomp/datarouter/util/FileWatcher.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/org/openecomp/datarouter/util/FileWatcher.java b/src/main/java/org/openecomp/datarouter/util/FileWatcher.java index 5b04310..8ae69d3 100644 --- a/src/main/java/org/openecomp/datarouter/util/FileWatcher.java +++ b/src/main/java/org/openecomp/datarouter/util/FileWatcher.java @@ -34,14 +34,15 @@ public abstract class FileWatcher extends TimerTask { 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 +} |