Skip to content

Commit

Permalink
Correction of forgotten increment
Browse files Browse the repository at this point in the history
It has been forgotten for quite some time, but I gave it a +1 to reflect only the changes between 2.15 ~ 2.16.
  • Loading branch information
k163377 committed Sep 30, 2023
1 parent ed3ac13 commit 57b72d7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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 @@ -113,10 +118,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 57b72d7

Please sign in to comment.