File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -151,5 +151,6 @@ private fun KFunction<*>.isPossibleSingleString(propertyNames: Set<String>): Boo
151
151
private fun Collection <KFunction <* >>.filterOutSingleStringCallables (propertyNames : Set <String >): Collection <KFunction <* >> =
152
152
this .filter { ! it.isPossibleSingleString(propertyNames) }
153
153
154
- private fun KClass <* >.isPrimaryConstructor (kConstructor : KFunction <* >) = this .primaryConstructor == kConstructor ||
155
- (this .primaryConstructor == null && this .constructors.size == 1 )
154
+ private fun KClass <* >.isPrimaryConstructor (kConstructor : KFunction <* >) = this .primaryConstructor.let {
155
+ it == kConstructor || (it == null && this .constructors.size == 1 )
156
+ }
You can’t perform that action at this time.
0 commit comments