From 6b24291bece2ecb437816c1f5b94b7a0598986bc Mon Sep 17 00:00:00 2001 From: shashikanth Date: Tue, 26 Sep 2017 14:43:01 +0530 Subject: Fix Blocker/Critical sonar issues 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 --- .../main/java/org/openecomp/appc/ccadaptor/ConfigComponentAdaptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'appc-config/appc-config-adaptor/provider/src/main') diff --git a/appc-config/appc-config-adaptor/provider/src/main/java/org/openecomp/appc/ccadaptor/ConfigComponentAdaptor.java b/appc-config/appc-config-adaptor/provider/src/main/java/org/openecomp/appc/ccadaptor/ConfigComponentAdaptor.java index ec8727fa6..4470ff2ee 100644 --- a/appc-config/appc-config-adaptor/provider/src/main/java/org/openecomp/appc/ccadaptor/ConfigComponentAdaptor.java +++ b/appc-config/appc-config-adaptor/provider/src/main/java/org/openecomp/appc/ccadaptor/ConfigComponentAdaptor.java @@ -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) { -- cgit 1.2.3-korg