summaryrefslogtreecommitdiffstats
path: root/policy-management/src/main/java
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-07-21 08:43:43 -0500
committerJorge Hernandez <jh1730@att.com>2017-07-21 08:43:43 -0500
commit1ad88d1ce542a10fb57d1205ac10c8882d103723 (patch)
tree943200ef955c88a44c2671d5e8712c3a13b1cf45 /policy-management/src/main/java
parent76ec9035351877aa5993bbefef63fcc73941d2f2 (diff)
[POLICY-8] clean pdp-d from sonar blockers
Change-Id: I25427a0505e2fdd2b0b939f652452cb4f9f07f02 Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'policy-management/src/main/java')
-rw-r--r--policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java2
-rw-r--r--policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java7
2 files changed, 3 insertions, 6 deletions
diff --git a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java
index d6146a30..7831e7b8 100644
--- a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java
+++ b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java
@@ -189,7 +189,7 @@ public class JsonProtocolFilter {
}
try {
- if (json == null || !json.isJsonObject()) {
+ if (!json.isJsonObject()) {
return false;
}
diff --git a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java
index fb3f95d3..bf7a43f3 100644
--- a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java
+++ b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java
@@ -642,13 +642,10 @@ class GsonProtocolCoderToolset extends ProtocolCoderToolset {
throws IllegalArgumentException, UnsupportedOperationException {
DroolsController droolsController =
- DroolsController.factory.get(groupId, artifactId, "");
+ DroolsController.factory.get(groupId, artifactId, null);
if (droolsController == null) {
logger.info("{}: no drools-controller to process {} (continue)", this, event);
- if (this.customCoder != null) {
- logger.warn("{}: no drools-controller to process {}", this, event);
- throw new IllegalStateException("custom-coder but no drools-controller");
- }
+ throw new IllegalStateException("custom-coder but no drools-controller");
}
if (this.customCoder != null) {