Update xsd element to generate boolean to false
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / util / genxsd / PutRelationPathSet.java
index 0b0fd94..3d055b8 100644 (file)
@@ -138,13 +138,6 @@ public class PutRelationPathSet {
                        e.printStackTrace();
                        return;
                }
-               finally{
-                       try {
-                               fop.close();
-                       } catch (IOException e) {
-                               e.printStackTrace();
-                       }
-               }
                try {
                        if(relations.size() > 0) {fop.write("[\n".getBytes());}
                        fop.write(String.join(",\n", relations).getBytes());
@@ -155,6 +148,13 @@ public class PutRelationPathSet {
                        e.printStackTrace();
                        return;
                }
+               finally{
+                       try {
+                               fop.close();
+                       } catch (IOException e) {
+                               e.printStackTrace();
+                       }
+               }
                logger.debug(String.join(",\n", relations));
                return;
        }