Skip to content

Commit d25d993

Browse files
committed
Merge remote-tracking branch 'origin/2.12' into github-396-missing-xml-constructor
2 parents f760d34 + 7741ecb commit d25d993

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<javac.src.version>1.8</javac.src.version>
5353
<javac.target.version>1.8</javac.target.version>
5454

55-
<version.kotlin>1.4.10</version.kotlin>
55+
<version.kotlin>1.4.21</version.kotlin>
5656

5757
<!-- Generate PackageVersion.java into this directory. -->
5858
<packageVersion.dir>com/fasterxml/jackson/module/kotlin</packageVersion.dir>

release-notes/VERSION-2.x

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Co-maintainers:
2525
#385: Add Moditect, source module info, to allow Kotlin module usage with Java Module system
2626
- Add Gradle Module Metadata (https://blog.gradle.org/alignment-with-gradle-module-metadata)
2727

28+
2.11.4 (12-Dec-2020)
2829
2.11.3 (02-Oct-2020)
2930
2.11.2 (02-Aug-2020)
3031

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/failing/GithubDatabind1329.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package com.fasterxml.jackson.module.kotlin.test.failing
33
import com.fasterxml.jackson.annotation.JsonSubTypes
44
import com.fasterxml.jackson.annotation.JsonTypeInfo
55
import com.fasterxml.jackson.annotation.JsonTypeName
6-
import com.fasterxml.jackson.module.kotlin.*
7-
import org.junit.Ignore
6+
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
7+
import com.fasterxml.jackson.module.kotlin.readValue
88
import org.junit.Test
99
import kotlin.test.assertEquals
1010
import kotlin.test.assertNull
@@ -60,4 +60,4 @@ class GithubDatabind1329 {
6060
CONTACT,
6161
USER
6262
}
63-
}
63+
}

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github145.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class TestGithub145 {
125125
}
126126
}
127127
@Test
128-
@Ignore("Broke at some point on 2.12 branch (before automated tests were working); fixe for 2.12 release")
128+
@Ignore("Broke at some point on 2.12 branch (before automated tests were working)")
129129
fun testPersonGood7() {
130130
val personGood7String = objectMapper.readValue<PersonGood7>(""""TestPreName,TestLastname"""")
131131
val personGood7Json =

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github180.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import com.fasterxml.jackson.annotation.JsonProperty
55
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
66
import com.fasterxml.jackson.module.kotlin.readValue
77
import org.junit.Test
8+
import kotlin.test.assertNull
89

9-
class Github180_JsonCreatorTest {
10+
class TestGithub180 {
1011
class TestClass(val instantName: String? = null, val someInt: Int? = null) {
11-
1212
companion object {
1313
@JvmStatic
1414
@JsonCreator
@@ -25,5 +25,7 @@ class Github180_JsonCreatorTest {
2525
@Test
2626
fun testMissingProperty() {
2727
val obj = jacksonObjectMapper().readValue<TestClass>("""{}""")
28+
assertNull(obj.instantName)
29+
assertNull(obj.someInt)
2830
}
29-
}
31+
}

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github308.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import kotlin.test.assertEquals
1010
import kotlin.test.assertNotNull
1111
import kotlin.test.assertNull
1212

13-
class Github308 {
14-
13+
class TestGithub308 {
1514
@JsonIgnoreProperties(ignoreUnknown = true)
1615
data class TestDto(
1716
@JsonIgnore
@@ -32,4 +31,4 @@ class Github308 {
3231
assertNull(dto.id)
3332
assertEquals(dto.cityId, 12345)
3433
}
35-
}
34+
}

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github88.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
44
import org.junit.Test
55
import kotlin.test.assertEquals
66

7-
class Github88 {
7+
class TestGithub88 {
88
class CloneableKotlinObj(val id: String) : Cloneable
99

1010
@Test
@@ -20,5 +20,4 @@ class Github88 {
2020

2121
assertEquals("{\"id\":\"123\"}", result)
2222
}
23-
24-
}
23+
}

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github91.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import com.fasterxml.jackson.module.kotlin.readValue
77
import org.junit.Assert.assertEquals
88
import org.junit.Test
99

10-
class Github91Test {
11-
10+
class TestGithub91 {
1211
data class DataClass1(val name: String, val content: DataClass2)
1312

14-
data class DataClass2 @JsonCreator(mode = JsonCreator.Mode.DELEGATING) constructor (@JsonValue val content: String)
13+
data class DataClass2 @JsonCreator(mode = JsonCreator.Mode.DELEGATING) constructor(@JsonValue val content: String)
1514

1615
private val jsonData = """
1716
{
@@ -27,4 +26,4 @@ class Github91Test {
2726
assertEquals(DataClass1("my name", DataClass2("some value")), dataClass1)
2827
assertEquals("{\"name\":\"my name\",\"content\":\"some value\"}", mapper.writeValueAsString(dataClass1))
2928
}
30-
}
29+
}

0 commit comments

Comments
 (0)