Skip to content

Commit

Permalink
small formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
apatrida committed Oct 29, 2019
1 parent d028fd2 commit 42c2506
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ internal class KotlinAnnotationIntrospector(private val context: Module.SetupCon
// TODO: implement nullIsSameAsDefault flag, which represents when TRUE that if something has a default value, it can be passed a null to default it
// this likely impacts this class to be accurate about what COULD be considered required

override fun hasRequiredMarker(m: AnnotatedMember): Boolean? =
cache.javaMemberIsRequired(m) {
override fun hasRequiredMarker(m: AnnotatedMember): Boolean? {
val hasRequired = cache.javaMemberIsRequired(m) {
try {
when {
nullToEmptyCollection && m.type.isCollectionLikeType -> false
Expand All @@ -47,6 +47,8 @@ internal class KotlinAnnotationIntrospector(private val context: Module.SetupCon
null
}
}
return hasRequired
}

override fun findCreatorAnnotation(config: MapperConfig<*>, a: Annotated): JsonCreator.Mode? {

Expand Down

0 comments on commit 42c2506

Please sign in to comment.