File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ kkurczewski
21
21
* #689 : Add KotlinDuration support
22
22
23
23
WrongWrong (@k163377 )
24
+ * #700 : Reduce the load on the search process for serializers
24
25
* #687 : Optimize and Refactor KotlinValueInstantiator.createFromObjectWith
25
26
* #686 : Add KotlinPropertyNameAsImplicitName option
26
27
* #685 : Streamline default value management for KotlinFeatures
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Co-maintainers:
18
18
19
19
2.16 .0 (not yet released )
20
20
21
+ #700 : Reduce the load on the search process for serializers .
21
22
#689 : Added UseJavaDurationConversion feature .
22
23
By enabling this feature and adding the Java Time module , Kotlin Duration can be handled in the same way as Java Duration .
23
24
#687 : Optimize and Refactor KotlinValueInstantiator .createFromObjectWith .
Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ internal class KotlinSerializers : Serializers.Base() {
102
102
val rawClass = type.rawClass
103
103
104
104
return when {
105
- UByte ::class .java.isAssignableFrom( rawClass) -> UByteSerializer
106
- UShort ::class .java.isAssignableFrom( rawClass) -> UShortSerializer
107
- UInt ::class .java.isAssignableFrom( rawClass) -> UIntSerializer
108
- ULong ::class .java.isAssignableFrom( rawClass) -> ULongSerializer
105
+ UByte ::class .java == rawClass -> UByteSerializer
106
+ UShort ::class .java == rawClass -> UShortSerializer
107
+ UInt ::class .java == rawClass -> UIntSerializer
108
+ ULong ::class .java == rawClass -> ULongSerializer
109
109
// The priority of Unboxing needs to be lowered so as not to break the serialization of Unsigned Integers.
110
110
rawClass.isUnboxableValueClass() -> ValueClassSerializer .from(rawClass)
111
111
else -> null
You can’t perform that action at this time.
0 commit comments