Fix Blocker/Critical sonar issues 17/15417/3
authorshashikanth <shashikanth.vh@huawei.com>
Tue, 26 Sep 2017 09:13:01 +0000 (14:43 +0530)
committerPatrick Brady <pb071s@att.com>
Thu, 28 Sep 2017 18:45:47 +0000 (11:45 -0700)
Fix Blocker/Critical sonar issues in appc module
https://sonar.onap.org/component_issues?id=org.openecomp.appc%3Aappc#resolved=false|severities=BLOCKER|fileUuids=AV36PknS89V-MRZU58_g

Issue-Id: APPC-186
Change-Id: I50868e7e76f03a724d97889432f2dce53552b36f
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
appc-config/appc-config-adaptor/provider/src/main/java/org/openecomp/appc/ccadaptor/ConfigComponentAdaptor.java

index ec8727f..4470ff2 100644 (file)
@@ -1008,7 +1008,7 @@ public class ConfigComponentAdaptor implements SvcLogicAdaptor
     {
         StringBuffer strBuff = new StringBuffer();
         String line;
-        try(BufferedReader in = new BufferedReader(new FileReader(fileName)))
+        try (BufferedReader in = new BufferedReader(new FileReader(fileName)))
         {
             while ((line = in.readLine()) != null)
             {