Skip to content

Commit e2f4822

Browse files
committed
Merge branch '2.19' into 3.x
2 parents f40d369 + af67275 commit e2f4822

File tree

5 files changed

+18
-21
lines changed

5 files changed

+18
-21
lines changed

.github/workflows/dep_build_v3.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Re-build on jackson-databind v3 push
22
on:
33
repository_dispatch:
44
types: [jackson-databind-pushed-v3]
5-
# just for testing
6-
workflow_dispatch:
75

86
permissions:
97
contents: read
@@ -21,7 +19,7 @@ jobs:
2119
steps:
2220
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2321
with:
24-
ref: master
22+
ref: 3.x
2523
- name: Set up JDK
2624
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
2725
with:

.github/workflows/main.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ name: Build and Deploy Snapshot
22
on:
33
push:
44
branches:
5-
- master
6-
- "3.0"
5+
- 3.x
76
paths-ignore:
87
- "README.md"
98
- "release-notes/*"
109
pull_request:
1110
branches:
12-
- master
13-
- "3.0"
11+
- 3.x
1412
paths-ignore:
1513
- "README.md"
1614
- "release-notes/*"
@@ -63,5 +61,5 @@ jobs:
6361
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
6462
with:
6563
token: ${{ secrets.CODECOV_TOKEN }}
66-
file: ./target/site/jacoco/jacoco.xml
64+
files: ./target/site/jacoco/jacoco.xml
6765
flags: unittests

release-notes/VERSION-2.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Project: jackson-dataformat-xml
44
=== Releases ===
55
------------------------------------------------------------------------
66

7-
2.19.0 (not yet released)
7+
2.19.0-rc (07-Apr-2025)
88

99
#700: Unify testing structure/tools [JSTEP-10]
1010
(fix contributed by Joo Hyuk K)

src/test/java/tools/jackson/dataformat/xml/deser/EmptyWithScalarsTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@
55

66
import org.junit.jupiter.api.Test;
77

8+
import com.fasterxml.jackson.annotation.JsonRootName;
9+
810
import tools.jackson.databind.DeserializationFeature;
911
import tools.jackson.databind.ObjectReader;
1012
import tools.jackson.databind.exc.MismatchedInputException;
1113

1214
import tools.jackson.dataformat.xml.*;
13-
import tools.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
1415

1516
import static org.junit.jupiter.api.Assertions.*;
1617

1718
// [dataformat-xml#473]: 2.11 -> 2.12 coercion of empty to "default"
1819
// [dataformat-xml#474]: no failure for primitives, no null
1920
public class EmptyWithScalarsTest extends XmlTestUtil
2021
{
21-
@JacksonXmlRootElement(localName = "w")
22+
@JsonRootName("w")
2223
static class NumbersPrimitive {
2324
public int i = 1;
2425
public long l = 2L;
@@ -27,7 +28,7 @@ static class NumbersPrimitive {
2728
public float f = 0.25f;
2829
}
2930

30-
@JacksonXmlRootElement(localName = "w")
31+
@JsonRootName("w")
3132
static class NumbersWrapper {
3233
public Integer I = Integer.valueOf(1);
3334
public Long L = Long.valueOf(1L);
@@ -36,13 +37,13 @@ static class NumbersWrapper {
3637
public Float F = Float.valueOf(0.5f);
3738
}
3839

39-
@JacksonXmlRootElement(localName = "w")
40+
@JsonRootName("w")
4041
static class NumbersOther {
4142
public BigInteger bi = BigInteger.ONE;
4243
public BigDecimal bd = BigDecimal.ONE;
4344
}
4445

45-
@JacksonXmlRootElement(localName = "w")
46+
@JsonRootName("w")
4647
static class MiscOther {
4748
public Boolean B = Boolean.TRUE;
4849
}

src/test/java/tools/jackson/dataformat/xml/lists/IterableCollectionBuilder646Test.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
import org.junit.jupiter.api.Test;
77

88
import com.fasterxml.jackson.annotation.JsonProperty;
9+
import com.fasterxml.jackson.annotation.JsonRootName;
910

1011
import tools.jackson.databind.annotation.JsonDeserialize;
1112

1213
import tools.jackson.dataformat.xml.XmlMapper;
1314
import tools.jackson.dataformat.xml.XmlTestUtil;
1415
import tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
15-
import tools.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
1616

1717
import static org.junit.jupiter.api.Assertions.assertEquals;
1818
import static org.junit.jupiter.api.Assertions.assertNotNull;
1919

2020
// [dataformat-xml#646]
2121
public class IterableCollectionBuilder646Test extends XmlTestUtil
2222
{
23-
@JsonDeserialize(builder = Parent.Builder.class)
24-
@JacksonXmlRootElement(localName = "parent")
25-
static class Parent {
23+
@JsonRootName("parent")
24+
@JsonDeserialize(builder = Parent.Builder.class)
25+
static class Parent {
2626
private final List<Child> children;
2727

2828
Parent(List<Child> children) {
@@ -53,9 +53,9 @@ public Parent build() {
5353
}
5454
}
5555

56-
@JsonDeserialize(builder = Child.Builder.class)
57-
@JacksonXmlRootElement(localName = "child")
58-
static class Child {
56+
@JsonRootName("child")
57+
@JsonDeserialize(builder = Child.Builder.class)
58+
static class Child {
5959
private final String id;
6060

6161
public Child(String id) {

0 commit comments

Comments
 (0)