Sonar Major issues 95/65495/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Mon, 10 Sep 2018 10:17:21 +0000 (15:47 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Mon, 10 Sep 2018 10:17:21 +0000 (15:47 +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&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java
Line No- L514 L524 L579

Change-Id: Ic54488da6e4114e8942e13dfb257e806faeca886
Issue-ID: DMAAP-761
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java

index 42a7089..3a707c4 100644 (file)
@@ -511,7 +511,7 @@ public class TopicServiceImpl implements TopicService {
                
                //
                
-               // String permission = aaf.aafPermissionString(topicName, "manage");
+               
                // if(!aaf.aafAuthentication(dmaapContext.getRequest(), permission))
                // {
                // LOGGER.error("Failed to permit write access to producer [" +
@@ -521,7 +521,7 @@ public class TopicServiceImpl implements TopicService {
                // DMaaPResponseCode.ACCESS_NOT_PERMITTED.getResponseCode(),
                // errorMessages.getNotPermitted1()+" <Grant publish permissions>
                
-               // LOGGER.info(errRes);
+               
                // throw new DMaaPAccessDeniedException(errRes);
                // }
                // }
@@ -576,7 +576,7 @@ public class TopicServiceImpl implements TopicService {
                // DMaaPResponseCode.ACCESS_NOT_PERMITTED.getResponseCode(),
                // errorMessages.getNotPermitted1()+" <Revoke publish permissions>
                
-               // LOGGER.info(errRes);
+               
                // throw new DMaaPAccessDeniedException(errRes);
                //