From 906535eb2499ca27ac4c14feababe51b82825502 Mon Sep 17 00:00:00 2001 From: nishadi Date: Wed, 17 Jan 2018 11:51:32 +0530 Subject: [PATCH] Modify CommentsManagerImpl Removed Not found Exception --- .../application/mgt/core/impl/CommentsManagerImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/CommentsManagerImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/CommentsManagerImpl.java index a310e77a53..024aaa9cac 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/CommentsManagerImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/CommentsManagerImpl.java @@ -101,12 +101,6 @@ public class CommentsManagerImpl implements CommentsManager { log.error("Null Point Exception.Comment at comment id "+apAppCommentId+" is null."); return false; } - - try { - throw new NotFoundException("Comment with comment id "+apAppCommentId+" does not exit"); - } catch (NotFoundException e) { - log.error("Not Found Exception occurs.", e); - } return true; }