@@ -399,7 +399,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
399399
400400 StdlibInstant ::class -> convert<Int > { StdlibInstant .fromEpochMilliseconds(it.toLong()) }
401401
402- // #1350
402+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
403403 DeprecatedInstant ::class -> convert<Int > { DeprecatedInstant .fromEpochMilliseconds(it.toLong()) }
404404
405405 JavaLocalDateTime ::class -> convert<Int > {
@@ -440,7 +440,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
440440
441441 StdlibInstant ::class -> convert<Byte > { StdlibInstant .fromEpochMilliseconds(it.toLong()) }
442442
443- // #1350
443+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
444444 DeprecatedInstant ::class -> convert<Byte > { DeprecatedInstant .fromEpochMilliseconds(it.toLong()) }
445445
446446 JavaLocalDateTime ::class -> convert<Byte > {
@@ -481,7 +481,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
481481
482482 StdlibInstant ::class -> convert<Short > { StdlibInstant .fromEpochMilliseconds(it.toLong()) }
483483
484- // #1350
484+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
485485 DeprecatedInstant ::class -> convert<Short > { DeprecatedInstant .fromEpochMilliseconds(it.toLong()) }
486486
487487 JavaLocalDateTime ::class -> convert<Short > {
@@ -534,7 +534,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
534534
535535 StdlibInstant ::class -> convert<Long > { StdlibInstant .fromEpochMilliseconds(it) }
536536
537- // #1350
537+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
538538 DeprecatedInstant ::class -> convert<Long > { DeprecatedInstant .fromEpochMilliseconds(it) }
539539
540540 JavaLocalDateTime ::class -> convert<Long > {
@@ -569,13 +569,13 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
569569
570570 JavaLocalTime ::class -> convert<StdlibInstant > { it.toLocalTime(defaultTimeZone).toJavaLocalTime() }
571571
572- // #1350
572+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
573573 DeprecatedInstant ::class -> convert<StdlibInstant > { it.toDeprecatedInstant() }
574574
575575 else -> null
576576 }
577577
578- // #1350
578+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
579579 DeprecatedInstant ::class -> when (toClass) {
580580 Long ::class -> convert<DeprecatedInstant > { it.toStdlibInstant().toEpochMilliseconds() }
581581
@@ -631,7 +631,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
631631 it.toKotlinInstant().toLocalTime(defaultTimeZone).toJavaLocalTime()
632632 }
633633
634- // #1350
634+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
635635 DeprecatedInstant ::class -> convert<JavaInstant > {
636636 it.toKotlinInstant().toDeprecatedInstant()
637637 }
@@ -682,7 +682,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
682682
683683 StdlibInstant ::class -> convert<LocalDateTime > { it.toInstant(defaultTimeZone) }
684684
685- // #1350
685+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
686686 DeprecatedInstant ::class -> convert<LocalDateTime > {
687687 it.toInstant(defaultTimeZone).toDeprecatedInstant()
688688 }
@@ -711,7 +711,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
711711 it.toKotlinLocalDateTime().toInstant(defaultTimeZone)
712712 }
713713
714- // #1350
714+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
715715 DeprecatedInstant ::class -> convert<JavaLocalDateTime > {
716716 it.toKotlinLocalDateTime().toInstant(defaultTimeZone).toDeprecatedInstant()
717717 }
@@ -736,7 +736,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
736736
737737 StdlibInstant ::class -> convert<LocalDate > { it.atStartOfDayIn(defaultTimeZone) }
738738
739- // #1350
739+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
740740 DeprecatedInstant ::class -> convert<LocalDate > {
741741 it.atStartOfDayIn(defaultTimeZone).toDeprecatedInstant()
742742 }
@@ -761,7 +761,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
761761 it.toKotlinLocalDate().atStartOfDayIn(defaultTimeZone)
762762 }
763763
764- // #1350
764+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
765765 DeprecatedInstant ::class -> convert<JavaLocalDate > {
766766 it.toKotlinLocalDate().atStartOfDayIn(defaultTimeZone).toDeprecatedInstant()
767767 }
0 commit comments