From 7de14af42606ea0afbb376e6f05de793108d555b Mon Sep 17 00:00:00 2001 From: efiacor Date: Fri, 26 Nov 2021 13:55:33 +0000 Subject: [DMAAP-BC] Fix failing jenkins Signed-off-by: efiacor Change-Id: I5183451b4c86e7be5ddc2f38ad83de9658eafb82 Issue-ID: DMAAP-1682 --- .../java/org/onap/dmaap/dbcapi/aaf/AafConnection.java | 19 +------------------ .../main/java/org/onap/dmaap/dbcapi/server/Main.java | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) (limited to 'dmaap-bc/src/main') diff --git a/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/aaf/AafConnection.java b/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/aaf/AafConnection.java index 934e541..b476723 100644 --- a/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/aaf/AafConnection.java +++ b/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/aaf/AafConnection.java @@ -22,24 +22,18 @@ package org.onap.dmaap.dbcapi.aaf; - - - - import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; +import java.net.ConnectException; import java.net.ProtocolException; import java.net.URL; import java.net.UnknownHostException; -import java.net.ConnectException; - import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLHandshakeException; - import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import org.apache.commons.codec.binary.Base64; @@ -50,25 +44,16 @@ import org.onap.dmaap.dbcapi.util.DmaapConfig; public class AafConnection extends BaseLoggingClass { - - - - private String aafCred; private String unit_test; - - private HttpsURLConnection uc; - public AafConnection( String cred ) { aafCred = cred; DmaapConfig p = (DmaapConfig)DmaapConfig.getConfig(); unit_test = p.getProperty( "UnitTest", "No" ); - } - private boolean makeConnection( String pURL ) { try { @@ -103,8 +88,6 @@ public class AafConnection extends BaseLoggingClass { return sb.toString(); } - - public int postAaf( AafObject obj, String pURL ) { logger.info( "entry: postAaf() to " + pURL ); diff --git a/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/server/Main.java b/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/server/Main.java index 942fe6c..91f7df4 100644 --- a/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/server/Main.java +++ b/dmaap-bc/src/main/java/org/onap/dmaap/dbcapi/server/Main.java @@ -47,7 +47,7 @@ public class Main extends BaseLoggingClass { public void setProvFQDN(String provFQDN) { Main.provFQDN = provFQDN; } - private Main() { + Main() { } public static void main(String[] args) { (new Main()).main(); -- cgit 1.2.3-korg