File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,6 @@ internal class KotlinAnnotationIntrospector(private val context: Module.SetupCon
110
110
}
111
111
}
112
112
113
- private fun KFunction <* >.isGetterLike (): Boolean = parameters.size == 1
114
- private fun KFunction <* >.isSetterLike (): Boolean =
115
- parameters.size == 2 && returnType == Unit ::class .createType()
116
-
117
113
private fun AnnotatedMethod.getFromCorrespondingAccessor (): Boolean? {
118
114
member.declaringClass.kotlin.declaredMemberProperties.forEach { kProperty1 ->
119
115
kProperty1.javaGetter
@@ -133,6 +129,10 @@ internal class KotlinAnnotationIntrospector(private val context: Module.SetupCon
133
129
return null
134
130
}
135
131
132
+ private fun KFunction <* >.isGetterLike (): Boolean = parameters.size == 1
133
+ private fun KFunction <* >.isSetterLike (): Boolean =
134
+ parameters.size == 2 && returnType == Unit ::class .createType()
135
+
136
136
private fun AnnotatedParameter.hasRequiredMarker (): Boolean? {
137
137
val member = this .member
138
138
val byAnnotation = this .getAnnotation(JsonProperty ::class .java)?.required
You can’t perform that action at this time.
0 commit comments