api/src/main/java/com/epam/pipeline/manager/issue/IssueManager.java
public IssueComment loadComment(Long issueId, Long commentId) {
        IssueComment comment = commentDao.loadComment(commentId).orElseThrow(getCommentNotFoundException(commentId));
        comment.setAttachments(attachmentDao.loadAttachmentsByCommentIds(Collections.singletonList(commentId))
                                   .get(commentId));
        validateIssueId(issueId, comment);
        return comment;
    }
/**
     * Loads comment specified by ID. If comment doesn't exist an error will be thrown. If {@code issueId} and
     * loaded {@link IssueComment#getId()} are not equal an error will be occurred.
     * @param issueId issue's ID
     * @param commentId comment's ID
     * @return existing {@link IssueComment}
     */
Loads comment specified by ID. If comment doesn't exist an error will be thrown. If  issueId and
loaded  IssueComment#getId() are not equal an error will be occurred.
@param issueId issue's ID
@param commentId comment's ID
@return existing  IssueComment
Loads comment specified by ID . If comment doesn ' t exist an error will be thrown . If issueId and loaded IssueComment#getId () are not equal an error will be occurred . @param issueId issue ' s ID @param commentId comment ' s ID @return existing IssueComment
public IssueComment loadComment(Long issueId, Long commentId) {
        IssueComment comment = commentDao.loadComment(commentId).orElseThrow(getCommentNotFoundException(commentId));
        comment.setAttachments(attachmentDao.loadAttachmentsByCommentIds(Collections.singletonList(commentId))
                                   .get(commentId));
        validateIssueId(issueId, comment);
        return comment;
    }
public IssueComment loadComment ( Long issueId , Long commentId ) { IssueComment comment = commentDao . loadComment ( commentId ) . orElseThrow ( getCommentNotFoundException ( commentId ) ) ; comment . setAttachments ( attachmentDao . loadAttachmentsByCommentIds ( Collections . singletonList ( commentId ) ) . get ( commentId ) ) ; validateIssueId ( issueId , comment ) ; return comment ; }
Loads comment specified by ID.
Loads comment specified by ID .