diff options
Diffstat (limited to 'appc-config/appc-config-adaptor/provider/src')
-rw-r--r-- | appc-config/appc-config-adaptor/provider/src/main/java/org/openecomp/appc/ccadaptor/ConfigComponentAdaptor.java | 4 |
1 files changed, 1 insertions, 3 deletions
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 4e59dd345..ec8727fa6 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,14 +1008,12 @@ public class ConfigComponentAdaptor implements SvcLogicAdaptor { StringBuffer strBuff = new StringBuffer(); String line; - try + try(BufferedReader in = new BufferedReader(new FileReader(fileName))) { - BufferedReader in = new BufferedReader(new FileReader(fileName)); while ((line = in.readLine()) != null) { strBuff.append(line+"\n"); } - in.close(); } catch (IOException e) { |