Sonar Fix: ConnectionBuilder.java 61/73761/2
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 28 Nov 2018 05:20:05 +0000 (10:50 +0530)
committerPatrick Brady <patrick.brady@att.com>
Wed, 28 Nov 2018 21:40:13 +0000 (21:40 +0000)
Fixed sonar issues/code-smells across this file

Issue-ID: APPC-1252
Change-Id: I8f07da91c7b29012c8d4b72af8b94ee5c5a017a4
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/onap/appc/adapter/ansible/impl/ConnectionBuilder.java

index 2272dd2..8eef1a2 100644 (file)
@@ -75,7 +75,7 @@ public class ConnectionBuilder {
      * Constructor that initializes an http client based on certificate
      **/
     public ConnectionBuilder(String certFile) throws KeyStoreException, CertificateException, IOException,
-            KeyManagementException, NoSuchAlgorithmException, APPCException {
+            KeyManagementException, NoSuchAlgorithmException {
 
         /* Point to the certificate */
         try(FileInputStream fs = new FileInputStream(certFile)) {
@@ -121,7 +121,7 @@ public class ConnectionBuilder {
      * Default if Mode == 0
      */
     public ConnectionBuilder(int mode)
-            throws SSLException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
+            throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
         if (mode == 1) {
             SSLContext sslcontext = SSLContexts.custom().loadTrustMaterial(null, new TrustSelfSignedStrategy()).build();
             SSLConnectionSocketFactory factory = new SSLConnectionSocketFactory(sslcontext,