aboutsummaryrefslogtreecommitdiffstats
path: root/profiles/robot/src/main
diff options
context:
space:
mode:
authorabhishek.c92 <abhishek.c92@samsung.com>2022-04-28 17:57:41 +0530
committerAbhishek Chakrabartti <abhishek.c92@samsung.com>2022-05-09 11:59:28 +0000
commitf3bea1cd0fd251b1d8b4bfde0ec8d88a486df9de (patch)
tree1752115171fd3906ab156d726d50619b1f13afff /profiles/robot/src/main
parent82af57b3b997c975ac436b9ab2e6ba5b3cf90ea3 (diff)
Sonar violation fixes for Parameterized tests and Lambda Expressions
Violations : Parameterized tests for OnapCommandprintTest Use lambda expression for OnapCommandSchemaCmdLoader Refactor method in OnapCli Signed-off-by: abhishek.c92 <abhishek.c92@samsung.com> Issue-ID: CLI-446 Change-Id: I8e8337d2b5993983d8ea105b2d1882952a3783a3
Diffstat (limited to 'profiles/robot/src/main')
-rw-r--r--profiles/robot/src/main/java/org/onap/cli/fw/robot/schema/OnapCommandSchemaRobotLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/robot/src/main/java/org/onap/cli/fw/robot/schema/OnapCommandSchemaRobotLoader.java b/profiles/robot/src/main/java/org/onap/cli/fw/robot/schema/OnapCommandSchemaRobotLoader.java
index 3b75b504..b8e934cd 100644
--- a/profiles/robot/src/main/java/org/onap/cli/fw/robot/schema/OnapCommandSchemaRobotLoader.java
+++ b/profiles/robot/src/main/java/org/onap/cli/fw/robot/schema/OnapCommandSchemaRobotLoader.java
@@ -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: