aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorONAP <arind.mondal@samsung.com>2018-07-06 18:57:23 +0900
committerONAP <arind.mondal@samsung.com>2018-07-06 19:13:15 +0900
commit7636bbc1db457a7cff570b35c724e4253d0a1cd4 (patch)
treef486d9ee99c609739f9ce1f481ff10a2721f996d
parentdcf9e631063544fb44ac11491c717907165b9620 (diff)
sonar issue fix
Issue-ID: CCSDK-332 Change-Id: Iec65b1ff600518b04ab13fb3508827864074a31b Signed-off-by: ONAP <arind.mondal@samsung.com>
-rw-r--r--sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/PrintYangToProp.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/PrintYangToProp.java b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/PrintYangToProp.java
index bcbe42a6..55492776 100644
--- a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/PrintYangToProp.java
+++ b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/PrintYangToProp.java
@@ -1346,8 +1346,8 @@ public class PrintYangToProp {
}
public static void main(String[] args){
- try{
- PrintStream ps = new PrintStream(new FileOutputStream(FileDescriptor.out));
+
+ try(PrintStream ps = new PrintStream(new FileOutputStream(FileDescriptor.out))){
PrintYangToProp printYangToProp = new PrintYangToProp();
String className = args[0];
//ClassLoader classLoader = PrintYangToProp.class.getClassLoader();