commit | f34c2b80a8b0536c2193a9b45d914b8ca5aa57a8 | [log] [tgz] |
---|---|---|
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | Wed Sep 19 15:07:22 2018 +0530 |
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | Wed Sep 19 15:07:22 2018 +0530 |
tree | 4a1ba403f21ce9fee05d258d39691a024c6baba2 | |
parent | dc2d4a759e75d6780af011864aaa2157798b9306 [diff] |
Sonar Major issues 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.msgrtr%3Amsgrtr&open=AWU41WgPwGn37JfbyHtV&resolved=false&severities=MAJOR Location: src/main/java/com/att/dmf/mr/resources/CambriaOutboundEventStream.java Line No-L341 L356 L359 Change-Id: Ic7d570d6f9b5ad32608922123f642fe97a150a18 Issue-ID: DMAAP-798 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
diff --git a/src/main/java/com/att/dmf/mr/resources/CambriaOutboundEventStream.java b/src/main/java/com/att/dmf/mr/resources/CambriaOutboundEventStream.java index 8a5c4a9..fd786b7 100644 --- a/src/main/java/com/att/dmf/mr/resources/CambriaOutboundEventStream.java +++ b/src/main/java/com/att/dmf/mr/resources/CambriaOutboundEventStream.java
@@ -338,7 +338,7 @@ } }); - // if (null != dmaapContext && isTransactionEnabled()) { + if (null != dmaapContext && istransEnable && istransType) { dmaapContext.getResponse().setHeader("transactionId", @@ -353,10 +353,10 @@ if (null != strclose_out_stream) close_out_stream = Boolean.parseBoolean(strclose_out_stream); - // if (fSettings.getBoolean("close.output.stream", true)) { + if (close_out_stream) { os.close(); - // } + } }