Sonar major issues 65/59965/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Fri, 10 Aug 2018 07:10:10 +0000 (12:40 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Fri, 10 Aug 2018 07:10:10 +0000 (12:40 +0530)
 This block of commented-out lines of code should be removed
Sonar Link:
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-330

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

index 9f2acc2..fb49096 100644 (file)
@@ -94,7 +94,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
        private Logger fLog;
 
        public JSONObject post(final String path, final byte[] data, final String contentType, final String username,
-                       final String password, final String protocolFlag) throws HttpException, JSONException {
+                       final String password, final String protocalFlag) throws HttpException, JSONException {
                if ((null != username && null != password)) {
                        WebTarget target=null;
                        Response response=null;
@@ -327,7 +327,6 @@ public class MRBaseClient extends HttpClient implements MRClient {
                        
 
                        // MultivaluedMap<String, Object> headersMap =
-                       // response.getHeaders();
                        // for(String key : headersMap.keySet()) {
                        String transactionid = response.getHeaderString("transactionid");
                        if (transactionid != null && !transactionid.equalsIgnoreCase("")) {