diff options
author | ajay priyadarshi <ajay.priyadarshi@ril.com> | 2018-02-15 17:42:12 +0530 |
---|---|---|
committer | ajay priyadarshi <ajay.priyadarshi@ril.com> | 2018-02-15 17:42:12 +0530 |
commit | b802ce628c61328a0f3891680c9156fa0bdc272b (patch) | |
tree | 442fa78cc8c30aa3812df6c812f883dc8472100a | |
parent | c3e4497efdb86d5e3bf3c661be53ac13ffb73ebe (diff) |
variable assignment modified.
emsdriver/commons/utils/UnZip.java
file name: UnZip.java
Change-Id: I7052a33b498e51216667f820123fb173582b506e
Issue-ID: VFC-761
Signed-off-by: ajay priyadarshi <ajay.priyadarshi@ril.com>
-rw-r--r-- | ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/utils/UnZip.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<ZipEntry> 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); |