Fix sonars in policy-pap
[policy/pap.git] / main / src / main / java / org / onap / policy / pap / main / rest / SessionData.java
index c8cddbb..923871e 100644 (file)
@@ -463,7 +463,7 @@ public class SessionData {
             String pdpType) throws PfModelException {
         ToscaConceptIdentifier policyId = policy.getIdentifier();
         policiesToBeDeployed.put(policyId, policy);
-        
+
         addData(policyId, pdps, pdpGroup, pdpType, true);
     }
 
@@ -498,7 +498,7 @@ public class SessionData {
         // delete all records whose "deploy" flag is the opposite of what we want
         deployStatus.deleteDeployment(policyId, !deploy);
 
-        ToscaConceptIdentifierOptVersion optid = new ToscaConceptIdentifierOptVersion(policyId);
+        var optid = new ToscaConceptIdentifierOptVersion(policyId);
         ToscaConceptIdentifier policyType = getPolicy(optid).getTypeIdentifier();
 
         for (String pdp : pdps) {