From: ajay priyadarshi Date: Mon, 19 Feb 2018 06:08:44 +0000 (+0530) Subject: sonar fix: Exception handling in FTPInterface.java X-Git-Tag: v1.1.0~44 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6ce7073003c176956e879888f7c7cf0144833a9e;p=vfc%2Fnfvo%2Fdriver%2Fems.git 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 --- 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();