From 6ce7073003c176956e879888f7c7cf0144833a9e Mon Sep 17 00:00:00 2001 From: ajay priyadarshi Date: Mon, 19 Feb 2018 11:38:44 +0530 Subject: [PATCH] sonar fix: Exception handling in FTPInterface.java emsdriver/commons/ftp/FTPInterface.java file name: FTPInterface.java Change-Id: I11acabbab327387b207d57f5d4058ff66321ea0f Issue-ID: VFC-768 Signed-off-by: ajay priyadarshi --- .../main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPInterface.java | 2 +- .../src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPInterface.java b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPInterface.java index 660c906..88acf66 100644 --- a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPInterface.java +++ b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPInterface.java @@ -24,7 +24,7 @@ public interface FTPInterface { * * @throws Exception */ - public void login(String host, int port, String user, String pwd, String encode, boolean isPassiveMode, int timeout) throws Exception; + public void login(String host, int port, String user, String pwd, String encode, boolean isPassiveMode, int timeout) throws IOException; /** * close ftp diff --git a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java index 06d3eca..a2b04bc 100644 --- a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java +++ b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java @@ -42,7 +42,7 @@ public class FTPSrv implements FTPInterface { * @param timeout * @throws Exception */ - public void login(String host, int port, String user, String pwd, String encode, boolean isPassiveMode, int timeout) throws Exception { + public void login(String host, int port, String user, String pwd, String encode, boolean isPassiveMode, int timeout) throws IOException { ftpClient = new FTPClient(); FTPClientConfig ftpClientConfig = new FTPClientConfig(); -- 2.16.6