More sonars in drools-pdp 26/117726/1
authorJim Hahn <jrh3@att.com>
Wed, 10 Feb 2021 22:41:25 +0000 (17:41 -0500)
committerJim Hahn <jrh3@att.com>
Wed, 10 Feb 2021 22:43:58 +0000 (17:43 -0500)
Addressed the following issues:
- log user-controlled data; moved the "NOSONAR" to a different line
- make constructors protected

Issue-ID: POLICY-2909
Change-Id: Ic69c100af777779e791c38cc444dd2ea726258f2
Signed-off-by: Jim Hahn <jrh3@att.com>
feature-pooling-dmaap/src/main/java/org/onap/policy/drools/pooling/state/State.java
feature-state-management/src/main/java/org/onap/policy/drools/statemanagement/DroolsPdpIntegrityMonitor.java
policy-management/src/main/java/org/onap/policy/drools/controller/internal/MavenDroolsController.java

index 853c24d..66728ee 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP
  * ================================================================================
- * Copyright (C) 2018, 2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2018, 2020-2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ public abstract class State {
      *
      * @param mgr pooling manager
      */
-    public State(PoolingManager mgr) {
+    protected State(PoolingManager mgr) {
         this.mgr = mgr;
     }
 
index 081a829..680abf3 100644 (file)
@@ -318,7 +318,7 @@ public class DroolsPdpIntegrityMonitor extends IntegrityMonitor {
          *
          * @param name name of the audit
          */
-        public AuditBase(String name) {
+        protected AuditBase(String name) {
             this.name = name;
             this.response = null;
         }
index 4604913..6ddcc36 100644 (file)
@@ -485,8 +485,8 @@ public class MavenDroolsController implements DroolsController {
                 this.getArtifactId(),
                 topic)) {
 
-            logger.warn("{}: DECODING-UNSUPPORTED {}:{}:{}", this,
-                    topic, this.getGroupId(), this.getArtifactId());        // NOSONAR
+            logger.warn("{}: DECODING-UNSUPPORTED {}:{}:{}", this,              // NOSONAR
+                    topic, this.getGroupId(), this.getArtifactId());
             return true;
         }