Skip to content

Commit acc6830

Browse files
committed
Upgrade Jackson to version 2.21.
Upgraded Jackson to the latest release, simplifying some logic in the MapperFactory. This commit also includes new test dependency updates for Jersey and TestNG, which were not immediately available after the 5.0.0 release. Reviewer: vyhhuang Reviewer: dougbulkley JiraIssue: DS-51223
1 parent 639a53c commit acc6830

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

55
## v5.0.1 - TBD
6-
Updated Jackson to 2.20.1.
6+
Updated Jackson to 2.21.0.
77

88
## v5.0.0 - 2025-Dec-15
99
For consistency with other open source Ping Identity software, the UnboundID SCIM 2 SDK for Java is

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@
8484
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8585
<compileSource>17</compileSource>
8686
<main.basedir>${project.basedir}</main.basedir>
87-
<jackson.version>2.20.1</jackson.version>
88-
<jackson-annotations.version>2.20</jackson-annotations.version>
87+
<jackson.version>2.21.0</jackson.version>
88+
<jackson-annotations.version>2.21</jackson-annotations.version>
8989
<jakarta-rs.version>4.0.0</jakarta-rs.version>
90-
<jersey.version>4.0.0</jersey.version>
91-
<testng.version>7.11.0</testng.version>
90+
<jersey.version>4.0.2</jersey.version>
91+
<testng.version>7.12.0</testng.version>
9292
<assertj.version>3.27.7</assertj.version>
9393
<maven.surefire.version>3.5.4</maven.surefire.version>
9494
</properties>

scim2-sdk-common/src/main/java/com/unboundid/scim2/common/utils/MapperFactory.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,7 @@ public ObjectMapper createObjectMapper()
248248
builder.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
249249

250250
// Don't serialize POJO nulls as JSON nulls.
251-
//
252-
// This can be replaced with "Value.ALL_NON_NULL" when Jackson 2.21 is used.
253-
builder.defaultPropertyInclusion(
254-
JsonInclude.Value.construct(
255-
JsonInclude.Include.NON_NULL,
256-
JsonInclude.Include.NON_NULL));
251+
builder.defaultPropertyInclusion(JsonInclude.Value.ALL_NON_NULL);
257252

258253
// Only use xsd:dateTime format for dates.
259254
SimpleModule dateTimeModule = new SimpleModule();

0 commit comments

Comments
 (0)