sonar fix: Exception handling in FTPInterface.java 69/32069/1
authorajay priyadarshi <ajay.priyadarshi@ril.com>
Mon, 19 Feb 2018 06:08:44 +0000 (11:38 +0530)
committerajay priyadarshi <ajay.priyadarshi@ril.com>
Mon, 19 Feb 2018 06:08:44 +0000 (11:38 +0530)
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>
ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPInterface.java
ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java

index 660c906..88acf66 100644 (file)
@@ -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
index 06d3eca..a2b04bc 100644 (file)
@@ -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();