We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a09a78 commit 187f40aCopy full SHA for 187f40a
src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinModule.kt
@@ -54,6 +54,13 @@ class KotlinModule @Deprecated(
54
val singletonSupport: SingletonSupport = DISABLED,
55
val strictNullChecks: Boolean = false
56
) : SimpleModule(KotlinModule::class.java.name, PackageVersion.VERSION) {
57
+ init {
58
+ if (!KotlinVersion.CURRENT.isAtLeast(1, 5)) {
59
+ // Kotlin 1.4 was deprecated when this process was introduced(jackson-module-kotlin 2.15).
60
+ throw IllegalStateException("jackson-module-kotlin requires Kotlin 1.5 or higher.")
61
+ }
62
63
+
64
@Deprecated(level = DeprecationLevel.HIDDEN, message = "For ABI compatibility")
65
constructor(
66
reflectionCacheSize: Int,
0 commit comments