Skip to content

Commit c2b68ba

Browse files
committed
fix method name
1 parent d44db98 commit c2b68ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinAnnotationIntrospector.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ internal class KotlinAnnotationIntrospector(private val context: Module.SetupCon
9898

9999
// This could be a setter or a getter of a class property or
100100
// a setter-like/getter-like method.
101-
private fun AnnotatedMethod.hasRequiredMarker(): Boolean? = this.getFromCorrespondingAccessor()
101+
private fun AnnotatedMethod.hasRequiredMarker(): Boolean? = this.getRequiredMarkerFromCorrespondingAccessor()
102102
?: this.member.kotlinFunction?.let { method -> // Is the member method a regular method of the data class or
103103
val byAnnotation = method.javaMethod?.isRequiredByAnnotation()
104104
when {
@@ -110,7 +110,7 @@ internal class KotlinAnnotationIntrospector(private val context: Module.SetupCon
110110
}
111111
}
112112

113-
private fun AnnotatedMethod.getFromCorrespondingAccessor(): Boolean? {
113+
private fun AnnotatedMethod.getRequiredMarkerFromCorrespondingAccessor(): Boolean? {
114114
member.declaringClass.kotlin.declaredMemberProperties.forEach { kProperty1 ->
115115
kProperty1.javaGetter
116116
?.takeIf { it == this.member }

0 commit comments

Comments
 (0)