summaryrefslogtreecommitdiffstats
path: root/applications/common
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-06-10 15:51:02 -0400
committerJim Hahn <jrh3@att.com>2021-06-10 15:51:34 -0400
commit109dc568e31018d3469b7c778e873e0425cdee8a (patch)
tree54c6f0813f28f28e1fb20e62b097c5f345380708 /applications/common
parent4629f19b9ca6d6fcbb66fb43327a087d700744e9 (diff)
Fix sonars in xacml-pdp
Fixed sonars: - use "var" Issue-ID: POLICY-3288 Change-Id: If4f685e0d645f6d6fbdd2cdb86c6b67336f6839a Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'applications/common')
-rw-r--r--applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyTranslatorUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyTranslatorUtils.java b/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyTranslatorUtils.java
index e6824378..0d23bc1c 100644
--- a/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyTranslatorUtils.java
+++ b/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyTranslatorUtils.java
@@ -266,7 +266,7 @@ public final class ToscaPolicyTranslatorUtils {
}
try {
- T data = CODER.convert(properties, clazz);
+ var data = CODER.convert(properties, clazz);
BeanValidationResult result = new BeanValidator().validateTop("properties", data);
if (!result.isValid()) {
throw new ToscaPolicyConversionException(result.getResult());