From a22292d9341119406cd990bac25fa7a4c0203501 Mon Sep 17 00:00:00 2001 From: Chip Kent Date: Wed, 10 Jan 2024 09:12:47 -0700 Subject: [PATCH] Spotless --- .../main/java/io/deephaven/time/DateTimeUtils.java | 4 ++-- .../time/calendar/TestBusinessCalendar.java | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java b/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java index 7a8831811b8..12a5985a618 100644 --- a/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java +++ b/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java @@ -488,7 +488,7 @@ public static String today(@Nullable final ZoneId timeZone) { @ScriptApi @NotNull public static String today() { - //noinspection ConstantConditions + // noinspection ConstantConditions return today(DateTimeUtils.timeZone()); } @@ -527,7 +527,7 @@ public static LocalDate todayLocalDate(@Nullable final ZoneId timeZone) { @ScriptApi @NotNull public static LocalDate todayLocalDate() { - //noinspection ConstantConditions + // noinspection ConstantConditions return todayLocalDate(DateTimeUtils.timeZone()); } diff --git a/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessCalendar.java b/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessCalendar.java index 356b931812d..fe468645157 100644 --- a/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessCalendar.java +++ b/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessCalendar.java @@ -1503,14 +1503,18 @@ public void testMinusNonBusinessDays() { } public void testFutureBusinessDate() { - assertEquals(bCalendar.plusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), 3), bCalendar.futureBusinessDate(3)); - assertEquals(bCalendar.plusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), -3), bCalendar.futureBusinessDate(-3)); + assertEquals(bCalendar.plusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), 3), + bCalendar.futureBusinessDate(3)); + assertEquals(bCalendar.plusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), -3), + bCalendar.futureBusinessDate(-3)); assertNull(bCalendar.futureBusinessDate(NULL_INT)); } public void testPastBusinessDate() { - assertEquals(bCalendar.minusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), 3), bCalendar.pastBusinessDate(3)); - assertEquals(bCalendar.minusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), -3), bCalendar.pastBusinessDate(-3)); + assertEquals(bCalendar.minusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), 3), + bCalendar.pastBusinessDate(3)); + assertEquals(bCalendar.minusBusinessDays(DateTimeUtils.todayLocalDate(bCalendar.timeZone()), -3), + bCalendar.pastBusinessDate(-3)); assertNull(bCalendar.pastBusinessDate(NULL_INT)); }