Sonar Major issues 51/67651/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 19 Sep 2018 09:14:08 +0000 (14:44 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 19 Sep 2018 09:14:08 +0000 (14:44 +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.msgrtr%3Amsgrtr&open=AWU41WgPwGn37JfbyHtS&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/dmf/mr/resources/CambriaOutboundEventStream.java
Line No-L266 L285 L302

Change-Id: I65961cf0ef580c62663c718f92af406f4490b6bf
Issue-ID: DMAAP-797
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/dmf/mr/resources/CambriaOutboundEventStream.java

index 539e9c0..8a5c4a9 100644 (file)
@@ -263,7 +263,7 @@ public class CambriaOutboundEventStream implements StreamWriter {
         *            throws IOException
         */
        public void write(final OutputStream os) throws IOException {
-               // final boolean transactionEnabled = topic.isTransactionEnabled();
+               
                // final boolean transactionEnabled = isTransEnabled();
                // final boolean transactionEnabled = istransEnable;
                // synchronized(this){
@@ -282,7 +282,7 @@ public class CambriaOutboundEventStream implements StreamWriter {
                                        entry.put("message", msg);
                                        os.write(entry.toString().getBytes());
                                } else {
-                                       // os.write(message.getBytes());
+                                       
                                                String jsonString = JSONObject.valueToString(msg);
                                        os.write(jsonString.getBytes());
                                }
@@ -299,7 +299,7 @@ public class CambriaOutboundEventStream implements StreamWriter {
                                        try {
                                                if (istransEnable && istransType) {
                                                        // final String transactionId =
-                                                       // jsonMessage.getString("transactionId");
+                                                       
                                                        // responseTransactionId = transId;
                                                        StringBuilder consumerInfo = new StringBuilder();
                                                        if (null != dmaapContext && null != dmaapContext.getRequest()) {