@@ -399,7 +399,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
399
399
400
400
StdlibInstant ::class -> convert<Int > { StdlibInstant .fromEpochMilliseconds(it.toLong()) }
401
401
402
- // #1350
402
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
403
403
DeprecatedInstant ::class -> convert<Int > { DeprecatedInstant .fromEpochMilliseconds(it.toLong()) }
404
404
405
405
JavaLocalDateTime ::class -> convert<Int > {
@@ -440,7 +440,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
440
440
441
441
StdlibInstant ::class -> convert<Byte > { StdlibInstant .fromEpochMilliseconds(it.toLong()) }
442
442
443
- // #1350
443
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
444
444
DeprecatedInstant ::class -> convert<Byte > { DeprecatedInstant .fromEpochMilliseconds(it.toLong()) }
445
445
446
446
JavaLocalDateTime ::class -> convert<Byte > {
@@ -481,7 +481,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
481
481
482
482
StdlibInstant ::class -> convert<Short > { StdlibInstant .fromEpochMilliseconds(it.toLong()) }
483
483
484
- // #1350
484
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
485
485
DeprecatedInstant ::class -> convert<Short > { DeprecatedInstant .fromEpochMilliseconds(it.toLong()) }
486
486
487
487
JavaLocalDateTime ::class -> convert<Short > {
@@ -534,7 +534,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
534
534
535
535
StdlibInstant ::class -> convert<Long > { StdlibInstant .fromEpochMilliseconds(it) }
536
536
537
- // #1350
537
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
538
538
DeprecatedInstant ::class -> convert<Long > { DeprecatedInstant .fromEpochMilliseconds(it) }
539
539
540
540
JavaLocalDateTime ::class -> convert<Long > {
@@ -569,13 +569,13 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
569
569
570
570
JavaLocalTime ::class -> convert<StdlibInstant > { it.toLocalTime(defaultTimeZone).toJavaLocalTime() }
571
571
572
- // #1350
572
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
573
573
DeprecatedInstant ::class -> convert<StdlibInstant > { it.toDeprecatedInstant() }
574
574
575
575
else -> null
576
576
}
577
577
578
- // #1350
578
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
579
579
DeprecatedInstant ::class -> when (toClass) {
580
580
Long ::class -> convert<DeprecatedInstant > { it.toStdlibInstant().toEpochMilliseconds() }
581
581
@@ -631,7 +631,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
631
631
it.toKotlinInstant().toLocalTime(defaultTimeZone).toJavaLocalTime()
632
632
}
633
633
634
- // #1350
634
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
635
635
DeprecatedInstant ::class -> convert<JavaInstant > {
636
636
it.toKotlinInstant().toDeprecatedInstant()
637
637
}
@@ -682,7 +682,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
682
682
683
683
StdlibInstant ::class -> convert<LocalDateTime > { it.toInstant(defaultTimeZone) }
684
684
685
- // #1350
685
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
686
686
DeprecatedInstant ::class -> convert<LocalDateTime > {
687
687
it.toInstant(defaultTimeZone).toDeprecatedInstant()
688
688
}
@@ -711,7 +711,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
711
711
it.toKotlinLocalDateTime().toInstant(defaultTimeZone)
712
712
}
713
713
714
- // #1350
714
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
715
715
DeprecatedInstant ::class -> convert<JavaLocalDateTime > {
716
716
it.toKotlinLocalDateTime().toInstant(defaultTimeZone).toDeprecatedInstant()
717
717
}
@@ -736,7 +736,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
736
736
737
737
StdlibInstant ::class -> convert<LocalDate > { it.atStartOfDayIn(defaultTimeZone) }
738
738
739
- // #1350
739
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
740
740
DeprecatedInstant ::class -> convert<LocalDate > {
741
741
it.atStartOfDayIn(defaultTimeZone).toDeprecatedInstant()
742
742
}
@@ -761,7 +761,7 @@ internal fun createConverter(from: KType, to: KType, options: ParserOptions? = n
761
761
it.toKotlinLocalDate().atStartOfDayIn(defaultTimeZone)
762
762
}
763
763
764
- // #1350
764
+ // Related to migration of kotlinx.datetime.Instant -> kotlin.time.Instant, Issue #1350
765
765
DeprecatedInstant ::class -> convert<JavaLocalDate > {
766
766
it.toKotlinLocalDate().atStartOfDayIn(defaultTimeZone).toDeprecatedInstant()
767
767
}
0 commit comments