From b802ce628c61328a0f3891680c9156fa0bdc272b Mon Sep 17 00:00:00 2001 From: ajay priyadarshi Date: Thu, 15 Feb 2018 17:42:12 +0530 Subject: [PATCH] variable assignment modified. emsdriver/commons/utils/UnZip.java file name: UnZip.java Change-Id: I7052a33b498e51216667f820123fb173582b506e Issue-ID: VFC-761 Signed-off-by: ajay priyadarshi --- .../src/main/java/org/onap/vfc/nfvo/emsdriver/commons/utils/UnZip.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/utils/UnZip.java b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/utils/UnZip.java index b065083..49e0894 100644 --- a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/utils/UnZip.java +++ b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/utils/UnZip.java @@ -56,7 +56,8 @@ public class UnZip { try { Enumeration e = zipFile.getEntries(); for (ZipEntry entry; e.hasMoreElements(); ) { - if (!(entry = e.nextElement()).isDirectory()) { + entry = e.nextElement(); + if (!entry.isDirectory()) { String toPath = new StringBuffer( deCompressPath).append(entry.getName()).toString(); toPath = toPath.replace("\\", File.separator); -- 2.16.6