diff options
author | 2018-09-18 14:49:45 +0530 | |
---|---|---|
committer | 2018-09-18 14:49:45 +0530 | |
commit | 8c749d9c6c5da0d1df2662d664e70b18498e076e (patch) | |
tree | e1a1bc983bd9abdb4279f57ac31796a8829bbd43 /src | |
parent | 417dd58bd32b95c000c7802e6b6bee8611962f46 (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=AV4-Vakk32hFUzlqc5xz&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/dmf/mr/service/impl/MMServiceImpl.java
Line No:L117 L141 L147
Change-Id: I219aec5a04bb7196ba03d6c62a890aa57fedc23f
Issue-ID: DMAAP-786
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/att/dmf/mr/service/impl/MMServiceImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/att/dmf/mr/service/impl/MMServiceImpl.java b/src/main/java/com/att/dmf/mr/service/impl/MMServiceImpl.java index da8cb16..e55f510 100644 --- a/src/main/java/com/att/dmf/mr/service/impl/MMServiceImpl.java +++ b/src/main/java/com/att/dmf/mr/service/impl/MMServiceImpl.java @@ -114,7 +114,7 @@ public class MMServiceImpl implements MMService { throws ConfigDbException, TopicExistsException, AccessDeniedException, UnavailableException, CambriaApiException, IOException { - // final long startTime = System.currentTimeMillis(); + final HttpServletRequest req = ctx.getRequest(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); @@ -138,13 +138,13 @@ public class MMServiceImpl implements MMService { limit = Integer.parseInt(req.getParameter("limit")); } limit = 1; - // int timeoutMs = 60000; + int timeoutMs = CambriaConstants.kNoTimeout; String strtimeoutMS = AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop, "timeout"); if (strtimeoutMS != null) timeoutMs = Integer.parseInt(strtimeoutMS); // int timeoutMs = ctx.getConfigReader().getSettings().getInt("timeout", - // CambriaConstants.kNoTimeout); + if (req.getParameter("timeout") != null) { timeoutMs = Integer.parseInt(req.getParameter("timeout")); } |