Skip to content

Commit

Permalink
[COZY-445] refac: 파라미터 순서를 변경한다
Browse files Browse the repository at this point in the history
  • Loading branch information
veronees committed Dec 5, 2024
1 parent 87664e8 commit 21c8eef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public PageResponseDto<List<RoomRecommendationResponseDTO>> getRecommendationLis
EntryStatus.JOINED)
.stream().collect(Collectors.groupingBy(mate -> mate.getRoom().getId()));

Map<Long, Integer> roomEqualityMap = calculateRoomEqualityMap(roomList, roomMateMap,
member);
Map<Long, Integer> roomEqualityMap = calculateRoomEqualityMap(roomList, member,
roomMateMap);

// null을 가장 후순위로 처리
List<Pair<Long, Integer>> sortedRoomList = getSortedRoomListBySortType(roomEqualityMap,
Expand All @@ -87,8 +87,8 @@ public PageResponseDto<List<RoomRecommendationResponseDTO>> getRecommendationLis
.build();
}

private Map<Long, Integer> calculateRoomEqualityMap(List<Room> roomList,
Map<Long, List<Mate>> roomMateMap, Member member) {
private Map<Long, Integer> calculateRoomEqualityMap(List<Room> roomList, Member member,
Map<Long, List<Mate>> roomMateMap) {

Map<Long, Integer> roomEqualityMap = new HashMap<>();

Expand Down

0 comments on commit 21c8eef

Please sign in to comment.