diff --git a/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt b/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt index fb36ef47..0b1a8485 100644 --- a/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt +++ b/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt @@ -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). @@ -106,10 +111,6 @@ class KotlinModule @Deprecated( builder.isEnabled(UseJavaDurationConversion), ) - companion object { - const val serialVersionUID = 1L - } - private val ignoredClassesForImplyingJsonCreator = emptySet>() override fun setupModule(context: SetupContext) {