Skip to content

Commit

Permalink
Merge remote-tracking branch 'FasterXML/2.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Sep 30, 2023
2 parents 9723d57 + d982ec7 commit a1d79c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ class KotlinModule @Deprecated(
val useKotlinPropertyNameForGetter: Boolean = false,
val useJavaDurationConversion: Boolean = false,
) : SimpleModule(KotlinModule::class.java.name, PackageVersion.VERSION) {
companion object {
// Increment when option is added
const val serialVersionUID = 2L
}

init {
if (!KotlinVersion.CURRENT.isAtLeast(1, 5)) {
// Kotlin 1.4 was deprecated when this process was introduced(jackson-module-kotlin 2.15).
Expand Down Expand Up @@ -106,10 +111,6 @@ class KotlinModule @Deprecated(
builder.isEnabled(UseJavaDurationConversion),
)

companion object {
const val serialVersionUID = 1L
}

private val ignoredClassesForImplyingJsonCreator = emptySet<KClass<*>>()

override fun setupModule(context: SetupContext) {
Expand Down

0 comments on commit a1d79c1

Please sign in to comment.