aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Forsyth <jf2512@att.com>2017-09-28 16:00:58 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-28 16:00:58 +0000
commit69e5338d7d4d88de2b6d3a91eb1a0db41683d45e (patch)
tree8da539cf754d68867e314bfd4cc17b38cfdd2aff
parent7b2068a40e09a77f6c2395748f3dca7526c2c8d6 (diff)
parent71088aaf4cf7d8d7182bd0cfe9943781e1538d44 (diff)
Merge "Added the "@Override" annotation"
-rw-r--r--src/main/java/org/openecomp/datarouter/util/CrossEntityReference.java2
-rw-r--r--src/main/java/org/openecomp/datarouter/util/EntityOxmReferenceHelper.java4
-rw-r--r--src/main/java/org/openecomp/datarouter/util/FileWatcher.java9
3 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/org/openecomp/datarouter/util/CrossEntityReference.java b/src/main/java/org/openecomp/datarouter/util/CrossEntityReference.java
index f55d2e7..e889656 100644
--- a/src/main/java/org/openecomp/datarouter/util/CrossEntityReference.java
+++ b/src/main/java/org/openecomp/datarouter/util/CrossEntityReference.java
@@ -38,7 +38,7 @@ public class CrossEntityReference {
public CrossEntityReference() {
this.targetEntityType = null;
- this.attributeNames = new ArrayList<String>();
+ this.attributeNames = new ArrayList<>();
}
public String getTargetEntityType() {
diff --git a/src/main/java/org/openecomp/datarouter/util/EntityOxmReferenceHelper.java b/src/main/java/org/openecomp/datarouter/util/EntityOxmReferenceHelper.java
index 503a069..cd5a37d 100644
--- a/src/main/java/org/openecomp/datarouter/util/EntityOxmReferenceHelper.java
+++ b/src/main/java/org/openecomp/datarouter/util/EntityOxmReferenceHelper.java
@@ -33,7 +33,7 @@ public class EntityOxmReferenceHelper implements ExternalOxmModelProcessor {
private HashMap<Version, VersionedOxmEntities> versionedModels;
protected EntityOxmReferenceHelper() {
- this.versionedModels = new HashMap<Version,VersionedOxmEntities>();
+ this.versionedModels = new HashMap<>();
}
public static EntityOxmReferenceHelper getInstance() {
@@ -57,4 +57,4 @@ public class EntityOxmReferenceHelper implements ExternalOxmModelProcessor {
return this.versionedModels.get(version);
}
-} \ No newline at end of file
+}
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
+}