summaryrefslogtreecommitdiffstats
path: root/models-interactions/model-simulators/src/main
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-08-20 16:39:17 -0400
committerJim Hahn <jrh3@att.com>2021-08-20 16:52:14 -0400
commit62c469dc0045e81979ac14aecb105f2150592c3a (patch)
tree11f8e8e25174c4750960a816fd08e071cc748242 /models-interactions/model-simulators/src/main
parentf9506fa28790781dbba0cb7ac16e1f19350ea4ef (diff)
Fix sonars in models
Fixed: - use "var" - change constructor to protected - add equals() to subclasses Issue-ID: POLICY-3094 Change-Id: Ia62716b1a740b4475e54e496330f50aa7fb404d7 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-interactions/model-simulators/src/main')
-rw-r--r--models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/XacmlSimulatorJaxRs.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/XacmlSimulatorJaxRs.java b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/XacmlSimulatorJaxRs.java
index 54023f6e5..36964210b 100644
--- a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/XacmlSimulatorJaxRs.java
+++ b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/XacmlSimulatorJaxRs.java
@@ -71,7 +71,7 @@ public class XacmlSimulatorJaxRs {
return func.apply(req);
}
- DecisionResponse response = new DecisionResponse();
+ var response = new DecisionResponse();
response.setMessage("unsupported action: " + req.getAction());
return response;
}