Address more sonars in apex-pdp
[policy/apex-pdp.git] / model / utilities / src / main / java / org / onap / policy / apex / model / utilities / CollectionUtils.java
index 8ca6d15..9636ea7 100644 (file)
@@ -92,9 +92,9 @@ public final class CollectionUtils {
 
             // Get the next objects
             @SuppressWarnings("unchecked")
-            final T leftObject = (T) leftIterator.next();
+            final var leftObject = (T) leftIterator.next();
             @SuppressWarnings("unchecked")
-            final T rightObject = (T) rightIterator.next();
+            final var rightObject = (T) rightIterator.next();
 
             // Compare the objects
             @SuppressWarnings("unchecked")