diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2019-07-11 20:53:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-11 20:53:42 +0000 |
commit | 8b56cdb1c739a9ed9a0ea6e4adc2c75d8aa60f3c (patch) | |
tree | 0f4dcd562a5d1c7ff1aa907abe5b0d03a0778e16 /UniversalVesAdapter | |
parent | 28ff9b3dd94f06185116e9098183f81914b60c71 (diff) | |
parent | 1fbde0d64a98efcb040cf38b3c1e193019b11b5c (diff) |
Merge "Fixing Sonar Blocker issue"
Diffstat (limited to 'UniversalVesAdapter')
-rw-r--r-- | UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/FetchDynamicConfig.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/FetchDynamicConfig.java b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/FetchDynamicConfig.java index bb9b127..022a586 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/FetchDynamicConfig.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/FetchDynamicConfig.java @@ -158,6 +158,7 @@ public class FetchDynamicConfig { PrintWriter printWriter = new PrintWriter(fstream);
printWriter.print(indentedretstring);
printWriter.close();
+ fstream.close();
debugLogger.info("New Config successfully written to local file to " + configFile);
} catch (IOException e) {
@@ -176,7 +177,7 @@ public class FetchDynamicConfig { file = ResourceUtils.getFile("classpath:" + configFileName);
content = new String(Files.readAllBytes(file.toPath()));
} catch (FileNotFoundException e) {
- errorLogger.error("colud not find file :", file.getName());
+ errorLogger.error("colud not find file :",configFileName);
} catch (IOException e) {
errorLogger.error("unable to read the file , reason:", e.getCause());
|