From 9d64009427dd056751231289a6bbcb05524017f0 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 6 Aug 2024 22:15:35 +0200 Subject: [PATCH] Fix compile warnings --- generator/src/generator/Generator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generator/src/generator/Generator.java b/generator/src/generator/Generator.java index c57a320..abff5a0 100644 --- a/generator/src/generator/Generator.java +++ b/generator/src/generator/Generator.java @@ -40,6 +40,7 @@ public static void main(String[] args) throws Exception { for (var prob : uml_module.getParseProblems()) { System.err.println(prob.toString()); } + uml.close(); return; } uml_module.getContext().getModelRepository().addModel(uml); @@ -48,6 +49,7 @@ public static void main(String[] args) throws Exception { System.out.println("Generating to " + out_path); uml_module.execute(); + uml.close(); } if (filename.endsWith(".scxml")) { @@ -64,6 +66,7 @@ public static void main(String[] args) throws Exception { for (var prob : scxml_module.getParseProblems()) { System.err.println(prob.toString()); } + scxml.close(); return; } @@ -73,6 +76,7 @@ public static void main(String[] args) throws Exception { System.out.println("Generating to " + out_path); scxml_module.execute(); + scxml.close(); } System.out.println("Successful"); } catch (Exception ex) {