Skip to content

Commit 22838e5

Browse files
authored
Merge pull request #746 from k163377/fix-module-instance
The KotlinModule#serialVersionUID is set to private
2 parents 7862ca0 + 70265c9 commit 22838e5

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
<!-- public -->
235235
<!-- removed -->
236236
<exclude>com.fasterxml.jackson.module.kotlin.SequenceSerializer</exclude>
237+
<exclude>com.fasterxml.jackson.module.kotlin.KotlinModule#serialVersionUID</exclude>
237238
<!-- internal -->
238239
</excludes>
239240
</parameter>

release-notes/CREDITS-2.x

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Contributors:
1818
# 2.17.0 (not yet released)
1919

2020
WrongWrong (@k163377)
21+
* #746: The KotlinModule#serialVersionUID is set to private.
2122
* #745: Modified isKotlinClass determination method.
2223
* #744: API deprecation update for KotlinModule.
2324
* #743: Fix handling of vararg deserialization.

release-notes/VERSION-2.x

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Co-maintainers:
1818

1919
2.17.0 (not yet released)
2020

21+
#746: The KotlinModule#serialVersionUID is set to private.
2122
#745: Modified isKotlinClass determination method.
2223
#744: Functions that were already marked as deprecated,
2324
such as the primary constructor in KotlinModule and some functions in Builder,

src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinModule.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class KotlinModule @Deprecated(
5959
) : SimpleModule(KotlinModule::class.java.name, PackageVersion.VERSION) {
6060
companion object {
6161
// Increment when option is added
62-
const val serialVersionUID = 2L
62+
private const val serialVersionUID = 2L
6363
}
6464

6565
init {

0 commit comments

Comments
 (0)