Fix sonars in policy models
[policy/models.git] / models-base / src / main / java / org / onap / policy / models / base / PfValidator.java
index 57cc3c8..db7b9d6 100644 (file)
@@ -97,7 +97,7 @@ public class PfValidator extends BeanValidator {
             return true;
         }
 
-        PfKey pfkey = (PfKey) value;
+        var pfkey = (PfKey) value;
         if (annot.keyNotNull() && pfkey.isNullKey()) {
             result.addResult(fieldName, xlate(pfkey), ValidationStatus.INVALID, Validated.IS_A_NULL_KEY);
             return false;
@@ -111,7 +111,7 @@ public class PfValidator extends BeanValidator {
             return true;
         }
 
-        BeanValidationResult result2 = new BeanValidationResult(fieldName, value);
+        var result2 = new BeanValidationResult(fieldName, value);
 
         PfKeyImpl keyimpl = (PfKeyImpl) pfkey;