Sonar major issues 97/59797/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 9 Aug 2018 07:40:41 +0000 (13:10 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 9 Aug 2018 07:40:41 +0000 (13:10 +0530)
 This block of commented-out lines of code should be removed
SonarLink:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbQH32hFUzlqc5YO&resolved=false&severities=MAJOR
Location:
 src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
Line No-338

Change-Id: I3504b07bb4bf281477000dfee48d4a7b00c23833
Issue-ID: DMAAP-572
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java

index 67c214e..9f2acc2 100644 (file)
@@ -334,17 +334,6 @@ public class MRBaseClient extends HttpClient implements MRClient {
                                fLog.info("TransactionId : " + transactionid);
                        }
 
-                       /*
-                        * final String responseData = response.readEntity(String.class);
-                        * JSONTokener jsonTokener = new JSONTokener(responseData);
-                        * JSONObject jsonObject = null; final char firstChar =
-                        * jsonTokener.next(); jsonTokener.back(); if ('[' == firstChar) {
-                        * JSONArray jsonArray = new JSONArray(jsonTokener); jsonObject =
-                        * new JSONObject(); jsonObject.put("result", jsonArray); } else {
-                        * jsonObject = new JSONObject(jsonTokener); }
-                        * 
-                        * return jsonObject;
-                        */
 
                        if (response.getStatus() == 403) {
                                JSONObject jsonObject = null;