summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-01-09 18:02:46 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2019-01-09 18:03:16 +0530
commit94b2598b128f37c75b2faf6fba1dffe25d4586fd (patch)
tree5281dfdde8ff1ae346933310a9a13091702757bc
parent75da5d3681c44326e4766ce9e3a110f11ee108d4 (diff)
Sonar Fix: EchoRequest.java
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-921 Change-Id: Ic438dfcd98b5643aef42da391e1926a2d79e6c38 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r--aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/EchoRequest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/EchoRequest.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/EchoRequest.java
index fb2345056..6011858d0 100644
--- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/EchoRequest.java
+++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/EchoRequest.java
@@ -4,6 +4,7 @@
* ================================================================================
* 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.
@@ -67,14 +68,14 @@ public class EchoRequest extends AAIRequest {
public String toJSONString() {
ObjectMapper mapper = getObjectMapper();
EchoResponse tenant = (EchoResponse)requestDatum;
- String json_text = null;
+ String jsonText = null;
try {
- json_text = mapper.writeValueAsString(tenant);
+ jsonText = mapper.writeValueAsString(tenant);
} catch (JsonProcessingException exc) {
handleException(this, exc);
return null;
}
- return json_text;
+ return jsonText;
}