diff options
author | James Forsyth <jf2512@att.com> | 2017-09-28 16:00:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-28 16:00:58 +0000 |
commit | 69e5338d7d4d88de2b6d3a91eb1a0db41683d45e (patch) | |
tree | 8da539cf754d68867e314bfd4cc17b38cfdd2aff /src/main/java/org/openecomp/datarouter/util/FileWatcher.java | |
parent | 7b2068a40e09a77f6c2395748f3dca7526c2c8d6 (diff) | |
parent | 71088aaf4cf7d8d7182bd0cfe9943781e1538d44 (diff) |
Merge "Added the "@Override" annotation"
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 +} |