File tree 3 files changed +15
-5
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ Contributors:
18
18
# 2 .18.0 (not yet released)
19
19
* #782 : Organize deprecated contents
20
20
21
- # 2 .17.1 (not yet released)
21
+ # 2 .17.2 (not yet released)
22
+
23
+ WrongWrong (@k163377 )
24
+ * #799 : Fixed problem with code compiled with 2.17.x losing backward compatibility.
25
+
26
+ # 2 .17.1 (04-May-2024)
22
27
23
28
WrongWrong (@k163377 )
24
29
* #776 : Delete Duration conversion that was no longer needed
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ Co-maintainers:
22
22
Several constructors and accessors to properties of KotlinModule .Builder that were marked as DeprecationLevel .ERROR have been removed .
23
23
Also , the content marked as DeprecationLevel .WARNING is now DeprecationLevel .ERROR .
24
24
25
+ 2.17 .2 (not yet released )
26
+ #799 : Fixed problem with code compiled with 2.17.x losing backward compatibility.
27
+
25
28
2.17 .1 (04 - May - 2024 )
26
29
27
30
#776 : Delete Duration conversion that was no longer needed.
Original file line number Diff line number Diff line change @@ -33,15 +33,17 @@ fun jsonMapper(initializer: JsonMapper.Builder.() -> Unit = {}): JsonMapper {
33
33
return builder.build()
34
34
}
35
35
36
- // region: JvmOverloads is set for bytecode compatibility for versions below 2.17.
37
- @JvmOverloads
36
+ // region: Do not remove the default argument for functions that take a builder as an argument for compatibility.
37
+ // The default argument can be removed in 2.21 or later. See #775 for the history.
38
+ fun jacksonObjectMapper (): ObjectMapper = jsonMapper { addModule(kotlinModule()) }
38
39
fun jacksonObjectMapper (initializer : KotlinModule .Builder .() -> Unit = {}): ObjectMapper =
39
40
jsonMapper { addModule(kotlinModule(initializer)) }
40
- @JvmOverloads
41
+
42
+ fun jacksonMapperBuilder (): JsonMapper .Builder = JsonMapper .builder().addModule(kotlinModule())
41
43
fun jacksonMapperBuilder (initializer : KotlinModule .Builder .() -> Unit = {}): JsonMapper .Builder =
42
44
JsonMapper .builder().addModule(kotlinModule(initializer))
43
45
44
- @JvmOverloads
46
+ fun ObjectMapper. registerKotlinModule (): ObjectMapper = this .registerModule(kotlinModule())
45
47
fun ObjectMapper.registerKotlinModule (initializer : KotlinModule .Builder .() -> Unit = {}): ObjectMapper =
46
48
this .registerModule(kotlinModule(initializer))
47
49
// endregion
You can’t perform that action at this time.
0 commit comments