diff options
author | ajay priyadarshi <ajay.priyadarshi@ril.com> | 2018-02-19 11:38:44 +0530 |
---|---|---|
committer | ajay priyadarshi <ajay.priyadarshi@ril.com> | 2018-02-19 11:38:44 +0530 |
commit | 6ce7073003c176956e879888f7c7cf0144833a9e (patch) | |
tree | 5efd9eb45d4efccb6c9ce5dc7be75387831d1e62 | |
parent | 6ee67932db9e989a708adaa918b08657ed98fdce (diff) |
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 <ajay.priyadarshi@ril.com>
-rw-r--r-- | ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPInterface.java | 2 | ||||
-rw-r--r-- | ems/boco/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(); |