From caa47417bcbc81333e0800b9baa3000a0ed58ee6 Mon Sep 17 00:00:00 2001 From: nishadi Date: Wed, 17 Jan 2018 14:27:44 +0530 Subject: [PATCH] Modified CommentManagerImpl removed catch (SQLException e) and catch (DBConnectionException e). --- .../application/mgt/core/impl/CommentsManagerImpl.java | 8 +------- 1 file changed, 1 insertion(+), 7 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 f7f0e53594..74ea9e57d4 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 @@ -193,16 +193,10 @@ public class CommentsManagerImpl implements CommentsManager { try { ConnectionManagerUtil.openDBConnection(); commentDAO.getComment(CommentId); - return commentDAO.updateComment(CommentId, - comment.getComment(),comment.getModifiedBy(),comment.getModifiedAt()); - } catch (SQLException e) { - log.error("SQL Exception occurs.", e); - } catch (DBConnectionException e) { - log.error("DB Connection Exception occurs.", e); + return commentDAO.updateComment(CommentId, comment.getComment(),comment.getModifiedBy(),comment.getModifiedAt()); } finally { ConnectionManagerUtil.closeDBConnection(); } - return commentDAO.getComment(CommentId); } public int getRatedUser(String uuid){