Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit f5868f2

Browse files
committed
Started using
1 parent aba9abf commit f5868f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/aviation.Timespan.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ object Timespan:
3434
def milliseconds(period: Timespan & FixedDuration): Long =
3535
period.hours*3600000L + period.minutes*60000L + period.seconds*1000L
3636

37-
def apply(denomination: StandardTime, n: Int): Timespan = (denomination: @unchecked) match
37+
def apply(denomination: StandardTime, n: Int): Timespan = denomination.runtimeChecked match
3838
case StandardTime.Year => Timespan(n, 0, 0, 0, 0, 0)
3939
case StandardTime.Month => Timespan(0, n, 0, 0, 0, 0)
4040
case StandardTime.Day => Timespan(0, 0, n, 0, 0, 0)

src/core/aviation.Timing.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ object Timing:
8888
infix def in (using RomanCalendar)(timezone: Timezone): LocalTime =
8989
val zonedTime = jt.Instant.ofEpochMilli(instant).nn.atZone(jt.ZoneId.of(timezone.name.s)).nn
9090

91-
val date = (zonedTime.getMonthValue: @unchecked) match
91+
val date = zonedTime.getMonthValue.runtimeChecked match
9292
case MonthName(month) => unsafely(Date(zonedTime.getYear, month, zonedTime.getDayOfMonth))
9393

9494
val time = ((zonedTime.getHour, zonedTime.getMinute, zonedTime.getSecond): @unchecked) match

0 commit comments

Comments
 (0)