diff options
author | Jim Hahn <jrh3@att.com> | 2020-06-25 11:12:36 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-06-25 11:57:00 -0400 |
commit | 069dbb206cedae6c664972cfb8baf036989d61a0 (patch) | |
tree | e0a2f0edd840775000c947811157ac81cb719981 /controlloop/m2/guard | |
parent | 68cdd3fe41fe7fa101d0d2331bd493a67e16203f (diff) |
Use parent snapshot in drools-apps
Fixed checkstyle issues that were subsequently reported.
Also fixed a few eclipse warnings.
Also fixed some of the sonar issues in the files that were touched:
- use "{}" in logger calls
- camelcase method names
- use "<?>" instead of generics
- add serialization ID
Issue-ID: POLICY-2188
Change-Id: I5c94a2e26dd74a61a0a919e1c3da17ab02a5bc9d
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/m2/guard')
-rw-r--r-- | controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java | 3 | ||||
-rw-r--r-- | controlloop/m2/guard/src/test/java/org/onap/policy/guard/GuardContextTest.java | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java b/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java index 1bfb6ae4c..d41e30cb6 100644 --- a/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java +++ b/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java @@ -33,7 +33,6 @@ import javax.persistence.Persistence; import org.drools.core.WorkingMemory; import org.onap.policy.drools.core.PolicyContainer; import org.onap.policy.drools.core.PolicySession; -import org.onap.policy.drools.system.PolicyController; import org.onap.policy.drools.system.PolicyControllerConstants; import org.onap.policy.drools.system.PolicyEngineConstants; import org.onap.policy.util.DroolsSessionCommonSerializable; @@ -257,7 +256,7 @@ public class GuardContext implements Serializable { // 'EntityManagerFactory' does not exist yet -- create one // copy database properties to a 'HashMap' - HashMap<Object,Object> propertiesMap = new HashMap<>(dbProperties); + HashMap<Object, Object> propertiesMap = new HashMap<>(dbProperties); // use 'ClassLoader' from Drools session propertiesMap.put("eclipselink.classloader", diff --git a/controlloop/m2/guard/src/test/java/org/onap/policy/guard/GuardContextTest.java b/controlloop/m2/guard/src/test/java/org/onap/policy/guard/GuardContextTest.java index 7242b9f12..54fd323c2 100644 --- a/controlloop/m2/guard/src/test/java/org/onap/policy/guard/GuardContextTest.java +++ b/controlloop/m2/guard/src/test/java/org/onap/policy/guard/GuardContextTest.java @@ -37,7 +37,6 @@ import java.util.Properties; import java.util.UUID; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; - import org.drools.core.WorkingMemory; import org.junit.AfterClass; import org.junit.BeforeClass; |