mplain
11/03/2020, 10:47 AMcontentType(MediaType contentType)
In my Kotlin code I call that method, passing a null
Intellij IDEA Ultimate 2020.2 highlights it in red, saying:
Null cannot be a value of a non-null type MediaType
But there are no special annotations on the interface method
Why does this happen, and how do I handle it?
(I actually pass a nullable value, and the DefaultWebClient implementation calls a method annotated with @Nullable, so it can work with nulls)thanksforallthefish
11/03/2020, 10:59 AMpackage-info
, it should be part of webflux librarymplain
11/03/2020, 11:03 AMmplain
11/03/2020, 11:06 AMthanksforallthefish
11/03/2020, 11:11 AMArian Stolwijk
11/03/2020, 12:41 PM