Code Review
/
aai
/
data-router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added the "@Override" annotation
[aai/data-router.git]
/
src
/
main
/
java
/
org
/
openecomp
/
datarouter
/
util
/
FileWatcher.java
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
(file)
--- 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();
}
this.timeStamp = file.lastModified();
}
+ @Override
public final void run() {
public final void run() {
- long
t
imeStamp = file.lastModified();
+ long
newT
imeStamp = file.lastModified();
- if ((
t
imeStamp - this.timeStamp) > 500) {
- this.timeStamp =
t
imeStamp;
+ if ((
newT
imeStamp - this.timeStamp) > 500) {
+ this.timeStamp =
newT
imeStamp;
onChange(file);
}
}
protected abstract void onChange(File file);
onChange(file);
}
}
protected abstract void onChange(File file);
-}
\ No newline at end of file
+}