Sonar violation fixes for Parameterized tests and Lambda Expressions
[cli.git] / profiles / robot / src / main / java / org / onap / cli / fw / robot / schema / OnapCommandSchemaRobotLoader.java
index 3b75b50..b8e934c 100644 (file)
@@ -92,7 +92,7 @@ public class OnapCommandSchemaRobotLoader {
 
                     case OnapCommandCmdConstants.SUCCESS_EXIT_CODE:
                         List<String> list = (ArrayList) valMap.get(key1);
-                        robot.setSuccessStatusCodes(list.stream().map(s -> Integer.parseInt(s)).collect(Collectors.toList()));
+                        robot.setSuccessStatusCodes(list.stream().map(Integer::parseInt).collect(Collectors.toList()));
                         break;
 
                     case OnapCommandCmdConstants.PASS_CODE: