Skip to content

Commit 40fa928

Browse files
committed
Merge branch '2.x' into 3.x
2 parents a237b52 + 6a2e62b commit 40fa928

File tree

5 files changed

+6
-14
lines changed

5 files changed

+6
-14
lines changed

release-notes/CREDITS-2.x

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Contributors:
1818
# 2.20.0 (not yet released)
1919

2020
WrongWrong (@k163377)
21+
* #969: Cleanup of deprecated contents
2122
* #967: Update settings for 2.20
2223

2324
# 2.19.1 (not yet released)

release-notes/VERSION-2.x

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Co-maintainers:
1818

1919
2.20.0 (not yet released)
2020

21+
#969: Deprecated content has been cleaned up with the version upgrade.
2122
#967: Kotlin has been upgraded to 2.0.21.
2223

2324
2.19.1 (not yet released)

src/main/kotlin/tools/jackson/module/kotlin/Exceptions.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package tools.jackson.module.kotlin
33
import tools.jackson.core.JsonParser
44
import tools.jackson.databind.DatabindException
55
import tools.jackson.databind.exc.InvalidNullException
6-
import java.io.Closeable
76
import kotlin.reflect.KParameter
87

98
/**
@@ -31,15 +30,4 @@ class MissingKotlinParameterException(
3130
val parameter: KParameter,
3231
processor: JsonParser? = null,
3332
msg: String
34-
) : InvalidNullException(processor, msg, null) {
35-
@Deprecated(
36-
"Use main constructor, ",
37-
ReplaceWith("MissingKotlinParameterException(KParameter, JsonParser?, String)"),
38-
DeprecationLevel.ERROR,
39-
)
40-
constructor(
41-
parameter: KParameter,
42-
processor: Closeable? = null,
43-
msg: String
44-
) : this(parameter, processor as JsonParser, msg)
45-
}
33+
) : InvalidNullException(processor, msg, null)

src/main/kotlin/tools/jackson/module/kotlin/KotlinFeature.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
4242
* Enabling it protects against this but has significant performance impact.
4343
*/
4444
@Deprecated(
45-
level = DeprecationLevel.WARNING,
45+
level = DeprecationLevel.ERROR,
4646
message = "This option will be migrated to the new backend in 2.21.",
4747
replaceWith = ReplaceWith("NewStrictNullChecks")
4848
)

src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class KotlinModule private constructor(
3434
val nullToEmptyMap: Boolean = NullToEmptyMap.enabledByDefault,
3535
val nullIsSameAsDefault: Boolean = NullIsSameAsDefault.enabledByDefault,
3636
val singletonSupport: Boolean = SingletonSupport.enabledByDefault,
37+
@Suppress("DEPRECATION_ERROR")
3738
strictNullChecks: Boolean = StrictNullChecks.enabledByDefault,
3839
val kotlinPropertyNameAsImplicitName: Boolean = KotlinPropertyNameAsImplicitName.enabledByDefault,
3940
val useJavaDurationConversion: Boolean = UseJavaDurationConversion.enabledByDefault,
@@ -70,6 +71,7 @@ class KotlinModule private constructor(
7071
builder.isEnabled(NullToEmptyMap),
7172
builder.isEnabled(NullIsSameAsDefault),
7273
builder.isEnabled(SingletonSupport),
74+
@Suppress("DEPRECATION_ERROR")
7375
builder.isEnabled(StrictNullChecks),
7476
builder.isEnabled(KotlinPropertyNameAsImplicitName),
7577
builder.isEnabled(UseJavaDurationConversion),

0 commit comments

Comments
 (0)