From f546bdb92e8aeb7b5be842fe8d2560622877082f Mon Sep 17 00:00:00 2001 From: luxin Date: Fri, 23 Mar 2018 17:30:15 +0800 Subject: Fix nexus-iq issues Change-Id: I739a9048f6d8ab94a48f3c68c9c604cd3ae369f8 Issue-ID: VFC-725 Signed-off-by: luxin --- .../vnfmadapter/VnfmadapterService/service/pom.xml | 27 ++++------------------ .../adapter/impl/AdapterResourceManager.java | 7 +++--- .../vnfmadapter/service/dao/impl/VnfmDaoImpl.java | 4 ++-- 3 files changed, 10 insertions(+), 28 deletions(-) (limited to 'huawei/vnfmadapter') diff --git a/huawei/vnfmadapter/VnfmadapterService/service/pom.xml b/huawei/vnfmadapter/VnfmadapterService/service/pom.xml index a18c043c..0b521cb1 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/pom.xml +++ b/huawei/vnfmadapter/VnfmadapterService/service/pom.xml @@ -171,7 +171,7 @@ org.codehaus.jackson jackson-jaxrs - 1.9.2 + 1.9.13 javax.ws.rs @@ -191,17 +191,17 @@ org.apache.httpcomponents httpclient - 4.3.5 + 4.5.3 org.apache.httpcomponents httpclient-cache - 4.3.5 + 4.5.3 org.apache.httpcomponents httpmime - 4.3.5 + 4.5.3 - - org.apache.httpcomponents - httpclient - commons-httpclient commons-httpclient 3.1 - - org.apache.httpcomponents - httpclient - 4.3.5 - - - org.apache.httpcomponents - httpclient-cache - 4.3.5 - - - org.apache.httpcomponents - httpmime - 4.3.5 - org.apache.cxf cxf-rt-frontend-jaxrs diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java index 53e51de7..a50548af 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java +++ b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java @@ -308,7 +308,8 @@ public class AdapterResourceManager implements IResourceManager { LOG.info("changeWorkingDirectory: " + ftpClient.changeWorkingDirectory(vnfpkg.getString(VNFD_FILE_PATH))); String vnfdPath = csarfilepath + "Artifacts/Deployment/OTHER/"; LOG.info("vnfd_file_name: " + vnfdPath + vnfpkg.getString("vnfd_file_name")); - try(InputStream inputStream = new FileInputStream(new File(vnfdPath + vnfpkg.getString("vnfd_file_name")))){ + try (InputStream inputStream = + new FileInputStream(new File(vnfdPath + vnfpkg.getString("vnfd_file_name")))) { flag = ftpClient.storeFile(vnfpkg.getString("vnfd_file_name"), inputStream); if(flag) { resJson.put("message", "upload Csar success!"); @@ -617,7 +618,7 @@ public class AdapterResourceManager implements IResourceManager { + "vnfpkginfo" + System.getProperty(Constant.FILE_SEPARATOR) + Constant.VNFPKGINFO; try (InputStream ins = new FileInputStream(fileName)) { - try(BufferedInputStream bins = new BufferedInputStream(ins)){ + try (BufferedInputStream bins = new BufferedInputStream(ins)) { byte[] contentByte = new byte[ins.available()]; int num = bins.read(contentByte); @@ -642,7 +643,7 @@ public class AdapterResourceManager implements IResourceManager { + "vnfpkginfo" + System.getProperty(Constant.FILE_SEPARATOR) + "vnfd_ids.json"; try (InputStream ins = new FileInputStream(fileName)) { - try (BufferedInputStream bins = new BufferedInputStream(ins)){ + try (BufferedInputStream bins = new BufferedInputStream(ins)) { byte[] contentByte = new byte[ins.available()]; int num = bins.read(contentByte); diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/dao/impl/VnfmDaoImpl.java b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/dao/impl/VnfmDaoImpl.java index 0c6b448e..30bd68bd 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/dao/impl/VnfmDaoImpl.java +++ b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/dao/impl/VnfmDaoImpl.java @@ -18,18 +18,18 @@ package org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.dao.impl; import java.util.List; +import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.common.restclient.ServiceException; import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.dao.inf.AbstractDao; import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.dao.inf.VnfmDao; import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.entity.Vnfm; import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.mapper.VnfmMapper; -import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.common.restclient.ServiceException; /** * VNFM DAO * .
* * @author - * @version VFC 1.0 Sep 14, 2016 + * @version VFC 1.0 Sep 14, 2016 */ public class VnfmDaoImpl extends AbstractDao implements VnfmDao { -- cgit 1.2.3-korg