Skip to content

Commit

Permalink
Responding to review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
chipkent committed Jan 16, 2024
1 parent e8250c1 commit 896411a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ private static BusinessCalendarInputs parseBusinessCalendarInputs(@NotNull final
calendarElements.description = getText(root.getChild("description"));
calendarElements.holidays = parseHolidays(root, calendarElements.timeZone);
final String firstValidDateStr = getText(root.getChild("firstValidDate"));
calendarElements.firstValidDate = DateTimeUtils.parseLocalDate(
firstValidDateStr == null ? Collections.min(calendarElements.holidays.keySet()).toString()
: firstValidDateStr);
calendarElements.firstValidDate =
firstValidDateStr == null ? Collections.min(calendarElements.holidays.keySet())
: DateTimeUtils.parseLocalDate(firstValidDateStr);
final String lastValidDateStr = getText(root.getChild("lastValidDate"));
calendarElements.lastValidDate = DateTimeUtils.parseLocalDate(
lastValidDateStr == null ? Collections.max(calendarElements.holidays.keySet()).toString()
: lastValidDateStr);
calendarElements.lastValidDate =
lastValidDateStr == null ? Collections.max(calendarElements.holidays.keySet())
: DateTimeUtils.parseLocalDate(lastValidDateStr);

// Set the default values
final Element defaultElement = getRequiredChild(root, "default");
Expand Down

0 comments on commit 896411a

Please sign in to comment.