Skip to content

Commit 9c0000d

Browse files
committed
Make the deprecation a warning
1 parent 388f02a commit 9c0000d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/common/src/DateTimePeriod.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ public fun Duration.toDateTimePeriod(): DateTimePeriod = buildDateTimePeriod(tot
579579
*/
580580
@Deprecated(
581581
"Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381",
582-
level = DeprecationLevel.ERROR
582+
level = DeprecationLevel.WARNING
583583
)
584584
public operator fun DateTimePeriod.plus(other: DateTimePeriod): DateTimePeriod = buildDateTimePeriod(
585585
safeAdd(totalMonths, other.totalMonths),
@@ -597,7 +597,7 @@ public operator fun DateTimePeriod.plus(other: DateTimePeriod): DateTimePeriod =
597597
*/
598598
@Deprecated(
599599
"Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381",
600-
level = DeprecationLevel.ERROR
600+
level = DeprecationLevel.WARNING
601601
)
602602
public operator fun DatePeriod.plus(other: DatePeriod): DatePeriod = DatePeriod(
603603
safeAdd(totalMonths, other.totalMonths),

0 commit comments

Comments
 (0)