Remove sonar warning for stream usage 67/20767/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Thu, 26 Oct 2017 10:39:24 +0000 (10:39 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Thu, 26 Oct 2017 10:39:24 +0000 (10:39 +0000)
Remove sonar warning for stream usage.

Change-Id: I673166b4df1dea8e8e99320f8c3dd00495a26d3b
Issue-ID: CLI-55
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java

index 5c30815..e18b1d7 100644 (file)
@@ -56,7 +56,7 @@ public class SampleYamlGenerator {
         nTab++;
         String[] lines = value.split("\n");
         long skipLines = debug ? 12 : 0;
-        Arrays.stream(lines).skip(skipLines ).forEach(line -> writer.write(printTabs() + line + "\n"));
+        Arrays.stream(lines).skip(skipLines ).forEach(line -> writer.write(printTabs() + line + "\n")); // NOSONAR
     }
 
     private static String printTabs() {