mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Modified CommentManagerImpl
removed catch (SQLException e) and catch (DBConnectionException e).
This commit is contained in:
parent
74ea82c926
commit
caa47417bc
@ -193,16 +193,10 @@ public class CommentsManagerImpl implements CommentsManager {
|
|||||||
try {
|
try {
|
||||||
ConnectionManagerUtil.openDBConnection();
|
ConnectionManagerUtil.openDBConnection();
|
||||||
commentDAO.getComment(CommentId);
|
commentDAO.getComment(CommentId);
|
||||||
return commentDAO.updateComment(CommentId,
|
return commentDAO.updateComment(CommentId, comment.getComment(),comment.getModifiedBy(),comment.getModifiedAt());
|
||||||
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);
|
|
||||||
} finally {
|
} finally {
|
||||||
ConnectionManagerUtil.closeDBConnection();
|
ConnectionManagerUtil.closeDBConnection();
|
||||||
}
|
}
|
||||||
return commentDAO.getComment(CommentId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getRatedUser(String uuid){
|
public int getRatedUser(String uuid){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user