File tree 2 files changed +1
-10
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,6 @@ class KotlinModule private constructor(
89
89
builder.isEnabled(UseJavaDurationConversion ),
90
90
)
91
91
92
- private val ignoredClassesForImplyingJsonCreator = emptySet<KClass <* >>()
93
-
94
92
override fun setupModule (context : SetupContext ) {
95
93
super .setupModule(context)
96
94
@@ -114,12 +112,7 @@ class KotlinModule private constructor(
114
112
nullIsSameAsDefault,
115
113
useJavaDurationConversion
116
114
))
117
- context.appendAnnotationIntrospector(
118
- KotlinNamesAnnotationIntrospector (
119
- cache,
120
- ignoredClassesForImplyingJsonCreator,
121
- kotlinPropertyNameAsImplicitName)
122
- )
115
+ context.appendAnnotationIntrospector(KotlinNamesAnnotationIntrospector (cache, kotlinPropertyNameAsImplicitName))
123
116
124
117
context.addDeserializers(KotlinDeserializers (cache, useJavaDurationConversion))
125
118
context.addKeyDeserializers(KotlinKeyDeserializers )
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import kotlin.reflect.jvm.javaType
23
23
24
24
internal class KotlinNamesAnnotationIntrospector (
25
25
private val cache : ReflectionCache ,
26
- private val ignoredClassesForImplyingJsonCreator : Set <KClass <* >>,
27
26
private val useKotlinPropertyNameForGetter : Boolean
28
27
) : NopAnnotationIntrospector() {
29
28
private fun getterNameFromJava (member : AnnotatedMethod ): String? {
@@ -89,7 +88,6 @@ internal class KotlinNamesAnnotationIntrospector(
89
88
// don't add a JsonCreator to any constructor if one is declared already
90
89
91
90
val kClass = member.declaringClass.kotlin
92
- .apply { if (this in ignoredClassesForImplyingJsonCreator) return false }
93
91
val kConstructor = cache.kotlinFromJava(member.annotated) ? : return false
94
92
95
93
// TODO: should we do this check or not? It could cause failures if we miss another way a property could be set
You can’t perform that action at this time.
0 commit comments