diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2018-02-01 14:17:30 -0500 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2018-02-01 14:17:39 -0500 |
commit | c23099a762c165ca8d1fd064902e91191952f678 (patch) | |
tree | 78b11b7c369a231282120b4da4108510b74fa874 /integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java | |
parent | 0f51fa4e072aeb29f4e323cb6013fb4a873aae5c (diff) |
Addressing technical debt integrity-monitor
Issue-ID: POLICY-457
Change-Id: I6e4bc00bc85f73bcb4c58c54378f062d98e6876d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java')
-rw-r--r-- | integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java b/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java index 4a09d66d..17223ba3 100644 --- a/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java +++ b/integrity-monitor/src/main/java/org/onap/policy/common/im/IntegrityMonitor.java @@ -1157,8 +1157,8 @@ public class IntegrityMonitor { * allow the the forward progress counter to advance. */ String msg = "allNotWellMap:"; - for(String key: allNotWellMap.keySet()){ - msg = msg.concat("\nkey = " + key + " msg = " + allNotWellMap.get(key)); + for(Entry<String, String> entry: allNotWellMap.entrySet()){ + msg = msg.concat("\nkey = " + entry.getKey() + " msg = " + entry.getValue()); } logger.error("endTransaction: allNotWellMap is NOT EMPTY. Not advancing forward" + "progress counter. \n{}\n", msg); @@ -1168,8 +1168,8 @@ public class IntegrityMonitor { if(getAllSeemsWellMap() != null){ if(!(getAllSeemsWellMap().isEmpty())){ String msg = "allSeemsWellMap:"; - for(String key: allSeemsWellMap.keySet()){ - msg = msg.concat("\nkey = " + key + " msg = " + allSeemsWellMap.get(key)); + for(Entry<String, String> entry: allSeemsWellMap.entrySet()){ + msg = msg.concat("\nkey = " + entry.getKey() + " msg = " + entry.getValue()); } logger.debug("endTransaction: allNotWellMap IS EMPTY and allSeemsWellMap is NOT EMPTY. Advancing forward" + "progress counter. \n{}\n", msg); @@ -1941,11 +1941,11 @@ public class IntegrityMonitor { } if(logger.isDebugEnabled()){ - for(Entry<String, String> ent: allSeemsWellMap.entrySet()) { - logger.debug("allSeemsWellMap: key = {} msg = {}", ent.getKey(), ent.getValue()); + for(Entry<String, String> entry: allSeemsWellMap.entrySet()){ + logger.debug("allSeemsWellMap: key = {} msg = {}", entry.getKey(), entry.getValue()); } - for(Entry<String, String> ent: allNotWellMap.entrySet()) { - logger.debug("allNotWellMap: key = {} msg = {}", ent.getKey(), ent.getValue()); + for(Entry<String, String> entry: allNotWellMap.entrySet()){ + logger.debug("allNotWellMap: key = {} msg = {}", entry.getKey(), entry.getValue()); } logger.debug("allSeemsWell exit"); } |