Added the "@Override" annotation
[aai/data-router.git] / src / main / java / org / openecomp / datarouter / util / FileWatcher.java
index 5b04310..8ae69d3 100644 (file)
@@ -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
+}