Added the "@Override" annotation 27/16327/2
authorrama-huawei <rama.subba.reddy.s@huawei.com>
Thu, 28 Sep 2017 10:26:00 +0000 (15:56 +0530)
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>
Thu, 28 Sep 2017 11:02:49 +0000 (11:02 +0000)
Issue-id: CIMAN-65

Change-Id: I5893ee1af1a0b5db6ec5162acb91456f4c28c734
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
src/main/java/org/openecomp/datarouter/util/CrossEntityReference.java
src/main/java/org/openecomp/datarouter/util/EntityOxmReferenceHelper.java
src/main/java/org/openecomp/datarouter/util/FileWatcher.java

index f55d2e7..e889656 100644 (file)
@@ -38,7 +38,7 @@ public class CrossEntityReference {
 
   public CrossEntityReference() {
     this.targetEntityType = null;
-    this.attributeNames = new ArrayList<String>();
+    this.attributeNames = new ArrayList<>();
   }
 
   public String getTargetEntityType() {
index 503a069..cd5a37d 100644 (file)
@@ -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
+}
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
+}