aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();