File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -177,13 +177,11 @@ internal class KotlinAnnotationIntrospector(
177
177
private fun Method.getRequiredMarkerFromAccessorLikeMethod (): Boolean? = this .kotlinFunction?.let { method ->
178
178
val byAnnotation = this .isRequiredByAnnotation()
179
179
return when {
180
- method.isGetterLike() -> requiredAnnotationOrNullability(byAnnotation, method.returnType.isRequired())
181
180
method.isSetterLike() -> requiredAnnotationOrNullability(byAnnotation, method.isMethodParameterRequired(0 ))
182
181
else -> null
183
182
}
184
183
}
185
184
186
- private fun KFunction <* >.isGetterLike (): Boolean = parameters.size == 1
187
185
private fun KFunction <* >.isSetterLike (): Boolean = parameters.size == 2 && returnType == UNIT_TYPE
188
186
189
187
private fun AnnotatedParameter.hasRequiredMarker (): Boolean? {
@@ -220,8 +218,6 @@ internal class KotlinAnnotationIntrospector(
220
218
! (isPrimitive && ! context.isEnabled(DeserializationFeature .FAIL_ON_NULL_FOR_PRIMITIVES ))
221
219
}
222
220
223
- private fun KType.isRequired (): Boolean = ! isMarkedNullable
224
-
225
221
companion object {
226
222
val UNIT_TYPE : KType = Unit ::class .createType()
227
223
}
You can’t perform that action at this time.
0 commit comments