From 39828dcf7e3c620cdc9a13e3912c69a6c2a182d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Wa=C5=9Bko?= Date: Mon, 12 Sep 2022 00:32:25 +0200 Subject: [PATCH] formatting --- .../org/enso/base/time/Date_Period_Utils.java | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/std-bits/base/src/main/java/org/enso/base/time/Date_Period_Utils.java b/std-bits/base/src/main/java/org/enso/base/time/Date_Period_Utils.java index 18ef42a396f82..6972c4a6f47a6 100644 --- a/std-bits/base/src/main/java/org/enso/base/time/Date_Period_Utils.java +++ b/std-bits/base/src/main/java/org/enso/base/time/Date_Period_Utils.java @@ -5,15 +5,21 @@ public class Date_Period_Utils implements TimeUtilsBase { - public static TemporalAdjuster quarter_start = (Temporal temporal) -> { - int currentQuarter = temporal.get(IsoFields.QUARTER_OF_YEAR); - int month = (currentQuarter - 1) * 3 + 1; - return temporal.with(ChronoField.MONTH_OF_YEAR, month).with(TemporalAdjusters.firstDayOfMonth()); - }; + public static TemporalAdjuster quarter_start = + (Temporal temporal) -> { + int currentQuarter = temporal.get(IsoFields.QUARTER_OF_YEAR); + int month = (currentQuarter - 1) * 3 + 1; + return temporal + .with(ChronoField.MONTH_OF_YEAR, month) + .with(TemporalAdjusters.firstDayOfMonth()); + }; - public static TemporalAdjuster quarter_end = (Temporal temporal) -> { - int currentQuarter = YearMonth.from(temporal).get(IsoFields.QUARTER_OF_YEAR); - int month = (currentQuarter - 1) * 3 + 3; - return temporal.with(ChronoField.MONTH_OF_YEAR, month).with(TemporalAdjusters.lastDayOfMonth()); - }; + public static TemporalAdjuster quarter_end = + (Temporal temporal) -> { + int currentQuarter = YearMonth.from(temporal).get(IsoFields.QUARTER_OF_YEAR); + int month = (currentQuarter - 1) * 3 + 3; + return temporal + .with(ChronoField.MONTH_OF_YEAR, month) + .with(TemporalAdjusters.lastDayOfMonth()); + }; }