@@ -150,52 +150,73 @@ class KotlinModule @Deprecated(level = DeprecationLevel.WARNING, message = "Use
150
150
151
151
@Deprecated(
152
152
message = " Deprecated, use withReflectionCacheSize(reflectionCacheSize) instead." ,
153
- replaceWith = ReplaceWith (" isEnabled (reflectionCacheSize)" )
153
+ replaceWith = ReplaceWith (" withReflectionCacheSize (reflectionCacheSize)" )
154
154
)
155
155
fun reflectionCacheSize (reflectionCacheSize : Int ) = apply {
156
156
this .reflectionCacheSize = reflectionCacheSize
157
157
}
158
158
159
159
@Deprecated(
160
160
message = " Deprecated, use isEnabled(NullToEmptyCollection) instead." ,
161
- replaceWith = ReplaceWith (" isEnabled(NullToEmptyCollection)" )
161
+ replaceWith = ReplaceWith (
162
+ " isEnabled(KotlinFeature.NullToEmptyCollection)" ,
163
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
164
+ )
162
165
)
163
166
fun getNullToEmptyCollection () = isEnabled(NullToEmptyCollection )
164
167
165
168
@Deprecated(
166
169
message = " Deprecated, use configure(NullToEmptyCollection, enabled) instead." ,
167
- replaceWith = ReplaceWith (" configure(NullToEmptyCollection, enabled)" )
170
+ replaceWith = ReplaceWith (
171
+ " configure(KotlinFeature.NullToEmptyCollection, nullToEmptyCollection)" ,
172
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
173
+ )
168
174
)
169
175
fun nullToEmptyCollection (nullToEmptyCollection : Boolean ) =
170
176
configure(NullToEmptyCollection , nullToEmptyCollection)
171
177
172
178
@Deprecated(
173
179
message = " Deprecated, use isEnabled(NullToEmptyMap) instead." ,
174
- replaceWith = ReplaceWith (" isEnabled(NullToEmptyMap)" )
180
+ replaceWith = ReplaceWith (
181
+ " isEnabled(KotlinFeature.NullToEmptyMap)" ,
182
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
183
+ )
175
184
)
176
185
fun getNullToEmptyMap () = isEnabled(NullToEmptyMap )
177
186
178
187
@Deprecated(
179
188
message = " Deprecated, use configure(NullToEmptyMap, enabled) instead." ,
180
- replaceWith = ReplaceWith (" configure(NullToEmptyMap, enabled)" )
189
+ replaceWith = ReplaceWith (
190
+ " configure(KotlinFeature.NullToEmptyMap, nullToEmptyMap)" ,
191
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
192
+ )
181
193
)
182
194
fun nullToEmptyMap (nullToEmptyMap : Boolean ) = configure(NullToEmptyMap , nullToEmptyMap)
183
195
184
196
@Deprecated(
185
197
message = " Deprecated, use isEnabled(NullIsSameAsDefault) instead." ,
186
- replaceWith = ReplaceWith (" isEnabled(NullIsSameAsDefault)" )
198
+ replaceWith = ReplaceWith (
199
+ " isEnabled(KotlinFeature.NullIsSameAsDefault)" ,
200
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
201
+ )
187
202
)
188
203
fun getNullIsSameAsDefault () = isEnabled(NullIsSameAsDefault )
189
204
190
205
@Deprecated(
191
206
message = " Deprecated, use configure(NullIsSameAsDefault, enabled) instead." ,
192
- replaceWith = ReplaceWith (" configure(NullIsSameAsDefault, enabled)" )
207
+ replaceWith = ReplaceWith (
208
+ " configure(KotlinFeature.NullIsSameAsDefault, nullIsSameAsDefault)" ,
209
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
210
+ )
193
211
)
194
212
fun nullIsSameAsDefault (nullIsSameAsDefault : Boolean ) = configure(NullIsSameAsDefault , nullIsSameAsDefault)
195
213
196
214
@Deprecated(
197
215
message = " Deprecated, use isEnabled(SingletonSupport) instead." ,
198
- replaceWith = ReplaceWith (" isEnabled(SingletonSupport)" )
216
+ replaceWith = ReplaceWith (
217
+ " isEnabled(KotlinFeature.SingletonSupport)" ,
218
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
219
+ )
199
220
)
200
221
fun getSingletonSupport () = when {
201
222
isEnabled(KotlinFeature .SingletonSupport ) -> CANONICALIZE
@@ -204,7 +225,10 @@ class KotlinModule @Deprecated(level = DeprecationLevel.WARNING, message = "Use
204
225
205
226
@Deprecated(
206
227
message = " Deprecated, use configure(SingletonSupport, enabled) instead." ,
207
- replaceWith = ReplaceWith (" configure(SingletonSupport, enabled)" )
228
+ replaceWith = ReplaceWith (
229
+ " configure(KotlinFeature.SingletonSupport, singletonSupport)" ,
230
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
231
+ )
208
232
)
209
233
fun singletonSupport (singletonSupport : SingletonSupport ) = when (singletonSupport) {
210
234
CANONICALIZE -> enable(KotlinFeature .SingletonSupport )
@@ -213,13 +237,19 @@ class KotlinModule @Deprecated(level = DeprecationLevel.WARNING, message = "Use
213
237
214
238
@Deprecated(
215
239
message = " Deprecated, use isEnabled(StrictNullChecks) instead." ,
216
- replaceWith = ReplaceWith (" isEnabled(StrictNullChecks)" )
240
+ replaceWith = ReplaceWith (
241
+ " isEnabled(KotlinFeature.StrictNullChecks)" ,
242
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
243
+ )
217
244
)
218
245
fun getStrictNullChecks () = isEnabled(StrictNullChecks )
219
246
220
247
@Deprecated(
221
248
message = " Deprecated, use configure(StrictNullChecks, enabled) instead." ,
222
- replaceWith = ReplaceWith (" configure(StrictNullChecks, enabled)" )
249
+ replaceWith = ReplaceWith (
250
+ " configure(KotlinFeature.StrictNullChecks, strictNullChecks)" ,
251
+ " com.fasterxml.jackson.module.kotlin.KotlinFeature"
252
+ )
223
253
)
224
254
fun strictNullChecks (strictNullChecks : Boolean ) = configure(StrictNullChecks , strictNullChecks)
225
255
0 commit comments