fix: input stream not closed
@@ -103,10 +103,10 @@ class SystemStartup implements CommandLineRunner {
propFileLocation = propFileLocation.replace("file:", "");
log.debug("Property file: " + propFileLocation);
- InputStream is = new FileInputStream(propFileLocation);
Properties properties = new Properties();
+ try (InputStream is = new FileInputStream(propFileLocation)) {
properties.load(is);
-
+ }
log.trace("Config Values are: " + properties.values());
Configuration c = new Configuration();
