Skip to content

Commit

Permalink
Merge pull request #204 from dlsc-software-consulting-gmbh/enhancemen…
Browse files Browse the repository at this point in the history
…t-refactor-today-range-naming

Refactor method name for clarity
  • Loading branch information
dlemmermann authored Sep 4, 2024
2 parents ad63587 + 56edb65 commit 5407c7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public DateRangeView() {
endCalendarView = getEndCalendarView();
endCalendarView.setSelectionModel(selectionModel);

DateRangePreset todayRange = createTodayRange();
DateRangePreset todayRange = createTodayRangePreset();
getPresets().addAll(todayRange, createYesterdayPreset(), createThisWeekPreset(), createThisMonthPreset(), createLastMonthPreset());
setValue(todayRange.getDateRangeSupplier().get());
}
Expand Down Expand Up @@ -320,7 +320,7 @@ public final ObservableList<DateRangePreset> getPresets() {
return presets;
}

private DateRangePreset createTodayRange() {
private DateRangePreset createTodayRangePreset() {
return new DateRangePreset("Today", () -> new DateRange("Today", LocalDate.now()));
}

Expand Down

0 comments on commit 5407c7b

Please sign in to comment.