Clean up more warnings. #8320

This commit is contained in:
Mark H. Wood
2022-07-13 16:49:18 -04:00
parent e9313acd24
commit 41e1d8506b
26 changed files with 174 additions and 151 deletions

View File

@@ -138,6 +138,7 @@ public class StructBuilder {
* @throws SQLException passed through.
* @throws FileNotFoundException if input or output could not be opened.
* @throws TransformerException if the input document is invalid.
* @throws XPathExpressionException passed through.
*/
public static void main(String[] argv)
throws ParserConfigurationException, SQLException,
@@ -209,6 +210,7 @@ public class StructBuilder {
// Export? Import?
if (line.hasOption('x')) { // export
exportStructure(context, outputStream);
outputStream.close();
} else { // Must be import
String input = line.getOptionValue('f');
if (null == input) {
@@ -224,6 +226,10 @@ public class StructBuilder {
}
importStructure(context, inputStream, outputStream);
inputStream.close();
outputStream.close();
// save changes from import
context.complete();
}