diff options
author | Kevin McKiou <km097d@att.com> | 2017-09-27 16:06:33 -0500 |
---|---|---|
committer | Kevin McKiou <km097d@att.com> | 2017-09-27 16:07:00 -0500 |
commit | e5b8cf8fc75789f8d22e01e9002e66600d6e1460 (patch) | |
tree | 1d2e754fdacdef3f474b898e2cbf6fb33f65e7ae /feature-state-management/src/main/java/org | |
parent | 3358e1e680b0946acc48790c460cc8586ae354bd (diff) |
SonarCube Critical Issue
Patch 1: Modifying DbAudit to access isJunit variable
to, hopefully, satisfy SonarCube on a critical issue.
Issue-ID: POLICY-261
Change-Id: Ibc1a2876bdf08377798c503110b05e79a0986c38
Signed-off-by: Kevin McKiou <km097d@att.com>
Diffstat (limited to 'feature-state-management/src/main/java/org')
-rw-r--r-- | feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java index cde6e4e4..b2830e8c 100644 --- a/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java +++ b/feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DbAudit.java @@ -44,11 +44,21 @@ public class DbAudit extends DroolsPDPIntegrityMonitor.AuditBase // invoked -- doing this avoids the need to create the table in advance. static private boolean createTableNeeded = true; - static public boolean isJunit = false; - synchronized private static void setCreateTableNeeded(boolean b) { DbAudit.createTableNeeded = b; - } + } + + static private boolean isJunit = false; + + synchronized public static void setIsJunit(boolean b) { + DbAudit.isJunit = b; + } + + public static boolean isJunit(){ + return DbAudit.isJunit; + } + + /** * @return the single 'DbAudit' instance */ |