From 56edb653771869ed09e3e20cb5bcdbdd472a66f2 Mon Sep 17 00:00:00 2001 From: leewyatt Date: Wed, 4 Sep 2024 00:08:57 +0900 Subject: [PATCH] Refactor method name for clarity Changed method name from createTodayRange to createTodayRangePreset for improved readability and consistency with other similar methods. This enhances code maintainability and aligns with naming conventions across the project. --- .../main/java/com/dlsc/gemsfx/daterange/DateRangeView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gemsfx/src/main/java/com/dlsc/gemsfx/daterange/DateRangeView.java b/gemsfx/src/main/java/com/dlsc/gemsfx/daterange/DateRangeView.java index 1b868319..290488a4 100644 --- a/gemsfx/src/main/java/com/dlsc/gemsfx/daterange/DateRangeView.java +++ b/gemsfx/src/main/java/com/dlsc/gemsfx/daterange/DateRangeView.java @@ -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()); } @@ -320,7 +320,7 @@ public final ObservableList getPresets() { return presets; } - private DateRangePreset createTodayRange() { + private DateRangePreset createTodayRangePreset() { return new DateRangePreset("Today", () -> new DateRange("Today", LocalDate.now())); }