Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions release-notes/CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Authors:

Contributors:

# 3.1.0 (not yet released)

WrongWrong (@k163377)
* #1077: Increase deprecation level of NewStrictNullChecks due to version upgrade

# 3.0.0-rc5 (not yet released)

WrongWrong (@k163377)
Expand Down
5 changes: 5 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ Former maintainers:
=== Releases ===
------------------------------------------------------------------------

3.1.0 (not yet released)

WrongWrong (@k163377)
#1077: Increase deprecation level of NewStrictNullChecks due to version upgrade

3.0.3 (28-Nov-2025)
3.0.2 (07-Nov-2025)
3.0.1 (21-Oct-2025)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
* Also, specifying both this and [StrictNullChecks] is not permitted.
*/
@Deprecated(
level = DeprecationLevel.WARNING,
level = DeprecationLevel.ERROR,
message = "This option will be merged into StrictNullChecks in 3.2.",
replaceWith = ReplaceWith("StrictNullChecks")
)
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class KotlinModule private constructor(
strictNullChecks: Boolean = StrictNullChecks.enabledByDefault,
val kotlinPropertyNameAsImplicitName: Boolean = KotlinPropertyNameAsImplicitName.enabledByDefault,
val useJavaDurationConversion: Boolean = UseJavaDurationConversion.enabledByDefault,
@Suppress("DEPRECATION_ERROR")
newStrictNullChecks: Boolean = NewStrictNullChecks.enabledByDefault,
) : SimpleModule(KotlinModule::class.java.name, PackageVersion.VERSION) {
// To reduce the amount of destructive changes, no properties will be added to the public.
Expand Down Expand Up @@ -70,6 +71,7 @@ class KotlinModule private constructor(
builder.isEnabled(StrictNullChecks),
builder.isEnabled(KotlinPropertyNameAsImplicitName),
builder.isEnabled(UseJavaDurationConversion),
@Suppress("DEPRECATION_ERROR")
builder.isEnabled(NewStrictNullChecks),
)

Expand Down
1 change: 0 additions & 1 deletion src/test/kotlin/tools/jackson/module/kotlin/DslTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Test
import tools.jackson.core.json.JsonReadFeature
import tools.jackson.core.json.JsonWriteFeature
import tools.jackson.module.kotlin.KotlinFeature.NewStrictNullChecks
import tools.jackson.module.kotlin.KotlinFeature.NullIsSameAsDefault
import tools.jackson.module.kotlin.KotlinFeature.NullToEmptyCollection
import tools.jackson.module.kotlin.KotlinFeature.NullToEmptyMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class KotlinModuleTest {
fun strictNullChecksTests() {
assertTrue(
kotlinModule {
@Suppress("DEPRECATION_ERROR")
disable(NewStrictNullChecks)
enable(StrictNullChecks)
}.strictNullChecks
Expand All @@ -31,6 +32,7 @@ class KotlinModuleTest {
assertThrows<IllegalArgumentException> {
kotlinModule {
enable(StrictNullChecks)
@Suppress("DEPRECATION_ERROR")
enable(NewStrictNullChecks)
}
}
Expand Down