Ejemplo n.º 1
0
 /**
  * groupKey를 통해 같은 코멘트그룹 목록을 반환한다. (같은 커밋, 같은 파일, 같은 라인의 댓글들)
  *
  * @param commitComments
  * @return
  */
 private Map<String, List<CommitComment>> sameTopicCommentGroups(
     List<CommitComment> commitComments) {
   Map<String, List<CommitComment>> commentGroup = new HashMap<>();
   for (CommitComment commitComment : commitComments) {
     commentGroup.put(
         commitComment.groupKey(),
         commitCommentsGroupByKey(commitComment.groupKey(), commitComments));
   }
   return commentGroup;
 }
Ejemplo n.º 2
0
 /**
  * groupKey를 통해 같은 코멘트그룹을 반환한다.
  *
  * @param groupKey
  * @param codeComments
  * @return
  */
 private List<CommitComment> commitCommentsGroupByKey(
     String groupKey, List<CommitComment> codeComments) {
   List<CommitComment> commitCommentGroups = new ArrayList<>();
   for (CommitComment commitComment : codeComments) {
     if (commitComment.groupKey().equals(groupKey)) {
       commitCommentGroups.add(commitComment);
     }
   }
   return commitCommentGroups;
 }