commit | 4df14a451f4b2fbb067edd45411b094849f9d8dd | [log] [tgz] |
---|---|---|
author | 柯志勇10068695 <ke.zhiyong@zte.com.cn> | Tue Oct 23 09:19:06 2018 +0800 |
committer | Andrea Campanella <andrea@opennetworking.org> | Tue Oct 23 08:06:51 2018 +0000 |
tree | 982e4c1afb314c2de8d67751eecea024b560e3c1 | |
parent | 4fa1f5e1578fbfd2b3b9cae07bcdfbfec2d31950 [diff] |
FileInputStream must be closed, or there will be a risk of memory leaks. Change-Id: I9186679875db3a01964dcafb8b4b64e9dd03655c
diff --git a/tools/package/maven-plugin/src/main/java/org/onosproject/maven/OnosAppMojo.java b/tools/package/maven-plugin/src/main/java/org/onosproject/maven/OnosAppMojo.java index d97c89a..3bff799 100644 --- a/tools/package/maven-plugin/src/main/java/org/onosproject/maven/OnosAppMojo.java +++ b/tools/package/maven-plugin/src/main/java/org/onosproject/maven/OnosAppMojo.java
@@ -269,6 +269,7 @@ .map(cfg -> expand(cfg.getRootNode().getValue().toString())) .collect(Collectors.toList()); + stream.close(); } catch (ConfigurationException e) { throw new MojoExecutionException("Unable to parse app.xml file", e); } catch (FileNotFoundException e) {