File tree 5 files changed +7
-10
lines changed
src/main/kotlin/tools/jackson/module/kotlin
5 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 165
165
<goals >
166
166
<goal >test-compile</goal >
167
167
</goals >
168
+ <configuration >
169
+ <args >
170
+ </args >
171
+ </configuration >
168
172
</execution >
169
173
</executions >
170
174
</plugin >
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Contributors:
17
17
18
18
# 2 .18.0 (not yet released)
19
19
* #782 : Organize deprecated contents
20
+ * #542 : Remove meaningless checks and properties in KNAI
20
21
21
22
# 2 .17.2 (not yet released)
22
23
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Co-maintainers:
23
23
#782 : Content marked as deprecated has been reorganized .
24
24
Several constructors and accessors to properties of KotlinModule .Builder that were marked as DeprecationLevel .ERROR have been removed .
25
25
Also , the content marked as DeprecationLevel .WARNING is now DeprecationLevel .ERROR .
26
+ #542 : Remove meaningless checks and properties in KNAI.
26
27
27
28
2.17 .2 (not yet released )
28
29
#799 : Fixed problem with code compiled with 2.17.x losing backward compatibility.
Original file line number Diff line number Diff line change @@ -84,8 +84,6 @@ class KotlinModule private constructor(
84
84
builder.isEnabled(UseJavaDurationConversion ),
85
85
)
86
86
87
- private val ignoredClassesForImplyingJsonCreator = emptySet<KClass <* >>()
88
-
89
87
override fun setupModule (context : SetupContext ) {
90
88
super .setupModule(context)
91
89
@@ -110,12 +108,7 @@ class KotlinModule private constructor(
110
108
nullIsSameAsDefault,
111
109
useJavaDurationConversion
112
110
))
113
- context.appendAnnotationIntrospector(
114
- KotlinNamesAnnotationIntrospector (
115
- cache,
116
- ignoredClassesForImplyingJsonCreator,
117
- kotlinPropertyNameAsImplicitName)
118
- )
111
+ context.appendAnnotationIntrospector(KotlinNamesAnnotationIntrospector (cache, kotlinPropertyNameAsImplicitName))
119
112
120
113
context.addDeserializers(KotlinDeserializers (cache, useJavaDurationConversion))
121
114
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