summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-08-28 14:40:46 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-08-28 14:40:59 +0530
commitabe3258c0ee62369e6d2089de853937cdc16dc6e (patch)
tree7da6389e05213fe1bbd2c8dc3a4c715e2a1bf646 /src
parent0f2eac2ac51c3672b84c454c1f3a1208c8ba703d (diff)
DrProvConnection.java : Fixed sonar issue
Fixed sonar issue, use Arrays.toString(array) instead. Issue-ID: DMAAP-660 Change-Id: I830ff5f16aa0b40cb97fd24e438017ae31bbe390 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java b/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java
index 751c5b8..8b3a4c4 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/client/DrProvConnection.java
@@ -30,6 +30,7 @@ import java.net.ProtocolException;
import java.net.SocketException;
import java.net.URL;
import java.util.ArrayList;
+import java.util.Arrays;
import javax.net.ssl.HttpsURLConnection;
@@ -143,7 +144,7 @@ public class DrProvConnection extends BaseLoggingClass {
public String doPostFeed( Feed postFeed, ApiError err ) {
byte[] postData = postFeed.getBytes();
- logger.info( "post fields=" + postData.toString() );
+ logger.info( "post fields=" + Arrays.toString(postData) );
String responsemessage = null;
String responseBody = null;
@@ -361,7 +362,7 @@ public class DrProvConnection extends BaseLoggingClass {
public String doPutFeed(Feed putFeed, ApiError err) {
byte[] postData = putFeed.getBytes();
- logger.info( "post fields=" + postData.toString() );
+ logger.info( "post fields=" + Arrays.toString(postData) );
String responsemessage = null;
String responseBody = null;