Skip to content

Commit

Permalink
Make the deprecation a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb committed Oct 30, 2024
1 parent 388f02a commit 9c0000d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/common/src/DateTimePeriod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public fun Duration.toDateTimePeriod(): DateTimePeriod = buildDateTimePeriod(tot
*/
@Deprecated(
"Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381",
level = DeprecationLevel.ERROR
level = DeprecationLevel.WARNING
)
public operator fun DateTimePeriod.plus(other: DateTimePeriod): DateTimePeriod = buildDateTimePeriod(
safeAdd(totalMonths, other.totalMonths),
Expand All @@ -597,7 +597,7 @@ public operator fun DateTimePeriod.plus(other: DateTimePeriod): DateTimePeriod =
*/
@Deprecated(
"Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381",
level = DeprecationLevel.ERROR
level = DeprecationLevel.WARNING
)
public operator fun DatePeriod.plus(other: DatePeriod): DatePeriod = DatePeriod(
safeAdd(totalMonths, other.totalMonths),
Expand Down

0 comments on commit 9c0000d

Please sign in to comment.