File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,21 @@ fun Class<*>.isKotlinClass(): Boolean {
32
32
* (e.g. List<String>) may contain null values after deserialization. Enabling it
33
33
* protects against this but has significant performance impact.
34
34
*/
35
- class KotlinModule @Deprecated(level = DeprecationLevel .WARNING , message = " Use KotlinModule.Builder" ) constructor(
35
+ class KotlinModule @Deprecated(
36
+ level = DeprecationLevel .WARNING ,
37
+ message = " Use KotlinModule.Builder instead of named constructor parameters." ,
38
+ replaceWith = ReplaceWith (
39
+ """ KotlinModule.Builder()
40
+ .withReflectionCacheSize(reflectionCacheSize)
41
+ .configure(KotlinFeature.NullToEmptyCollection, nullToEmptyCollection)
42
+ .configure(KotlinFeature.NullToEmptyMap, nullToEmptyMap)
43
+ .configure(KotlinFeature.NullIsSameAsDefault, nullIsSameAsDefault)
44
+ .configure(KotlinFeature.SingletonSupport, singletonSupport)
45
+ .configure(KotlinFeature.StrictNullChecks, strictNullChecks)
46
+ .build()""" ,
47
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
48
+ )
49
+ ) constructor(
36
50
val reflectionCacheSize : Int = 512 ,
37
51
val nullToEmptyCollection : Boolean = false ,
38
52
val nullToEmptyMap : Boolean = false ,
You can’t perform that action at this time.
0 commit comments