diff --git a/backend/src/main/java/kr/momo/domain/schedule/recommend/CandidateSchedule.java b/backend/src/main/java/kr/momo/domain/schedule/recommend/CandidateSchedule.java index 2372b1105..93a2c7607 100644 --- a/backend/src/main/java/kr/momo/domain/schedule/recommend/CandidateSchedule.java +++ b/backend/src/main/java/kr/momo/domain/schedule/recommend/CandidateSchedule.java @@ -31,13 +31,13 @@ public static List mergeContinuous( .takeWhile(i -> i == headIdx || isSequential(i, sortedSchedules, isContinuous)) .map(sortedSchedules::get) .toList(); - addWhenLongerOrEqualThanMinTime(subList, mergedSchedules, minSize); + addIfLongerThanOrEqualToMinTime(subList, mergedSchedules, minSize); idx += subList.size(); } return mergedSchedules; } - private static void addWhenLongerOrEqualThanMinTime( + private static void addIfLongerThanOrEqualToMinTime( List subList, List mergedSchedules, int minSize ) { if (minSize <= subList.size()) {