aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorvarun gudisena <varuneshwar.gudisena@att.com>2018-12-18 15:45:28 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-18 15:45:28 +0000
commitcd97df01cc5ee7b4e95188903eddc3ff4318d6e2 (patch)
tree8650157a0ff2cf15d642630ae8e9bd04b4d11543 /src/main
parentb7c5c10d19fb986e86b5fd8996a3f4e6639edba2 (diff)
parent65464926663b5b923dbf39022c341743094482a2 (diff)
Merge "Fixed sonar issues in MrProvConnection.java"
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/client/MrProvConnection.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/client/MrProvConnection.java b/src/main/java/org/onap/dmaap/dbcapi/client/MrProvConnection.java
index 26c494f..94d671f 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/client/MrProvConnection.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/client/MrProvConnection.java
@@ -3,6 +3,7 @@
* org.onap.dmaap
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2018 IBM.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,9 +38,6 @@ import javax.net.ssl.HttpsURLConnection;
import org.apache.commons.codec.binary.Base64;
import org.apache.log4j.Logger;
import org.onap.dmaap.dbcapi.aaf.AafDecrypt;
-import org.onap.dmaap.dbcapi.aaf.AafService;
-import org.onap.dmaap.dbcapi.aaf.DecryptionInterface;
-import org.onap.dmaap.dbcapi.aaf.AafService.ServiceType;
import org.onap.dmaap.dbcapi.logging.BaseLoggingClass;
import org.onap.dmaap.dbcapi.logging.DmaapbcLogMessageEnum;
import org.onap.dmaap.dbcapi.model.ApiError;
@@ -227,13 +225,15 @@ public class MrProvConnection extends BaseLoggingClass{
}
} catch (Exception e) {
- System.err.println("Unable to read response " );
- e.printStackTrace();
+ errorLogger.error("Unable to read response " );
+
}
finally {
try {
uc.disconnect();
- } catch ( Exception e ) {}
+ } catch ( Exception e ) {
+ errorLogger.error("Unable to disconnect");
+ }
}
return new String( rc +": " + responsemessage );