summaryrefslogtreecommitdiffstats
path: root/integrity-audit
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2022-10-19 10:39:24 +0100
committerliamfallon <liam.fallon@est.tech>2022-10-19 10:39:28 +0100
commit7f1a3a44ca4ac555e235f66a7801328ecb98c2b5 (patch)
treef9fe193a52b8e8a8f6f21210ef27aac88f8fcade /integrity-audit
parent94206bf0220c569eef0bd959179ccd7e57ff1eaa (diff)
Fix some dependencies flagged in scans
Issue-ID: POLICY-4393 Change-Id: I5b82f5e17ae8827486cc477d7ade4ed46e2e902b Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'integrity-audit')
-rw-r--r--integrity-audit/src/main/java/org/onap/policy/common/ia/DbAudit.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/integrity-audit/src/main/java/org/onap/policy/common/ia/DbAudit.java b/integrity-audit/src/main/java/org/onap/policy/common/ia/DbAudit.java
index c8ca41ca..d20ed80c 100644
--- a/integrity-audit/src/main/java/org/onap/policy/common/ia/DbAudit.java
+++ b/integrity-audit/src/main/java/org/onap/policy/common/ia/DbAudit.java
@@ -461,11 +461,15 @@ public class DbAudit {
+ "\n Entry 1 (short prefix style): " + resourceName1 + ": "
+ new ReflectionToStringBuilder(entry1, ToStringStyle.SHORT_PREFIX_STYLE).toString()
+ "\n Entry 2 (short prefix style): " + resourceName2 + ": "
- + new ReflectionToStringBuilder(entry2, ToStringStyle.SHORT_PREFIX_STYLE).toString()
+ + (entry2 != null
+ ? new ReflectionToStringBuilder(entry2, ToStringStyle.SHORT_PREFIX_STYLE).toString()
+ : "null")
+ "\n Entry 1 (recursive style): " + resourceName1 + ": "
+ new ReflectionToStringBuilder(entry1, new RecursiveToStringStyle()).toString()
+ "\n Entry 2 (recursive style): " + resourceName2 + ": "
- + new ReflectionToStringBuilder(entry2, new RecursiveToStringStyle()).toString();
+ + (entry2 != null
+ ? new ReflectionToStringBuilder(entry2, new RecursiveToStringStyle()).toString()
+ : "null");
logger.debug(msg);
} catch (ClassNotFoundException e) {