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>
private Logger fLog;
public JSONObject post(final String path, final byte[] data, final String contentType, final String username,
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;
if ((null != username && null != password)) {
WebTarget target=null;
Response response=null;
// MultivaluedMap<String, Object> headersMap =
// MultivaluedMap<String, Object> headersMap =
- // response.getHeaders();
// for(String key : headersMap.keySet()) {
String transactionid = response.getHeaderString("transactionid");
if (transactionid != null && !transactionid.equalsIgnoreCase("")) {
// for(String key : headersMap.keySet()) {
String transactionid = response.getHeaderString("transactionid");
if (transactionid != null && !transactionid.equalsIgnoreCase("")) {