diff options
author | ONAP <arind.mondal@samsung.com> | 2018-07-06 18:57:23 +0900 |
---|---|---|
committer | ONAP <arind.mondal@samsung.com> | 2018-07-06 19:13:15 +0900 |
commit | 7636bbc1db457a7cff570b35c724e4253d0a1cd4 (patch) | |
tree | f486d9ee99c609739f9ce1f481ff10a2721f996d | |
parent | dcf9e631063544fb44ac11491c717907165b9620 (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.java | 4 |
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(); |