From 7a224af9e5eff59bcb55118a1217968740a77d3f Mon Sep 17 00:00:00 2001 From: Murali-P Date: Fri, 3 Mar 2017 17:35:33 +0530 Subject: Add file header Resolved:VNFSDK-21 VNF SDK Function tests Change-Id: I96c1123c7657a277d21bb998d001415a6d4c2786 Signed-off-by: Murali-P --- .../src/main/java/org/openo/vnfsdk/functest/FileUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vnf-sdk-function-test/src/main') diff --git a/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/FileUtil.java b/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/FileUtil.java index e97b4c4..ccfb3fa 100644 --- a/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/FileUtil.java +++ b/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/FileUtil.java @@ -46,7 +46,7 @@ public final class FileUtil { } /** - * create dir. + * Create directory. * * @param dir dir to create * @return boolean @@ -188,9 +188,9 @@ public final class FileUtil { */ private static void closeZipFile(ZipFile zipFile) { try { - ZipFile tempZipFile = zipFile; + ZipFile tempZipFile = zipFile; if(tempZipFile != null) { - tempZipFile.close(); + tempZipFile.close(); } } catch(IOException ioe) { LOG.error("close ZipFile error!: " + ioe); @@ -222,7 +222,7 @@ public final class FileUtil { FileInputStream fileInputStream = new FileInputStream(filename); int value = fileInputStream.read(byteArrayFile); fileInputStream.close(); - LOG.debug("Number of bytes read from fileInputStream = "+value); + LOG.debug("Number of bytes read from fileInputStream = " + value); } catch(Exception e) { LOG.error("convertZipFiletoByteArray: " + e); } -- cgit 1.2.3-korg