Skip to content

Commit 58e8c48

Browse files
authored
Merge branch '3.x' into 5405-map-format-shape-bug
2 parents 2a15b6c + 893468e commit 58e8c48

File tree

17 files changed

+100
-53
lines changed

17 files changed

+100
-53
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323

2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2727

2828
# Initializes the CodeQL tools for scanning.
2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
30+
uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # v3.29.5
3131
with:
3232
languages: ${{ matrix.language }}
3333

3434
- name: Autobuild
35-
uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
35+
uses: github/codeql-action/autobuild@fdbfb4d2750291e159f0156def62b853c2798ca2 # v3.29.5
3636

3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
38+
uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v3.29.5

.github/workflows/dep_build_v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
env:
2020
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2121
steps:
22-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2323
with:
2424
ref: 2.x
2525
- name: Set up JDK

.github/workflows/dep_build_v3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
env:
2020
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2121
steps:
22-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2323
with:
2424
ref: 3.x
2525
- name: Set up JDK

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
env:
3232
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3333
steps:
34-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
34+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3535
- name: Set up JDK
3636
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
3737
with:

.github/workflows/trigger_dep_builds_v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Repository dispatch
39-
uses: peter-evans/repository-dispatch@2c856c63feddee6147cab2f38801935b6a59a765 # v3.0.0
39+
uses: peter-evans/repository-dispatch@d2c43ab06ec1cddd2c2a0aae659681b8465ce87a # v3.0.0
4040
with:
4141
token: ${{ secrets.token }}
4242
repository: ${{ matrix.repo }}

.github/workflows/trigger_dep_builds_v3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Repository dispatch
40-
uses: peter-evans/repository-dispatch@2c856c63feddee6147cab2f38801935b6a59a765 # v3.0.0
40+
uses: peter-evans/repository-dispatch@d2c43ab06ec1cddd2c2a0aae659681b8465ce87a # v3.0.0
4141
with:
4242
token: ${{ secrets.token }}
4343
repository: ${{ matrix.repo }}

release-notes/VERSION

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ Versions: 3.x (for earlier see VERSION-2.x)
3333
(contributed by Hélios G)
3434
5442: Make `JsonMapper/ObjectMapper` fully proxyable by CGLIB
3535
(fix contributed by Fouad A)
36+
#5456: Additional configuration (`JsonNodeFeature.STRIP_TRAILING_BIGDECIMAL_ZEROES`: true)
37+
to MapperBuilder#configureForJackson2 to closer match Jackson 2 behavior
38+
(contributed by @nrayburn-tech)
3639

37-
3.0.3 (not yet released)
40+
3.0.3 (28-Nov-2025)
3841

3942
#5393: `@JsonAnyGetter` property gets included in generated schema
4043
(reported by @victor-noel-pfx)

src/main/java/tools/jackson/databind/JavaType.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,8 @@ public final boolean isEnumImplType() {
305305
return ClassUtil.isEnumType(_class) && (_class != Enum.class);
306306
}
307307

308-
/**
309-
* @since 2.12
310-
*/
311308
public final boolean isRecordType() {
312-
return ClassUtil.isRecordType(_class);
309+
return _class.isRecord();
313310
}
314311

315312
/**

src/main/java/tools/jackson/databind/cfg/MapperBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,7 @@ public B configure(DatatypeFeature feature, boolean state) {
807807
* <li>{@link DateTimeFeature}s</li>
808808
* <li>{@link DeserializationFeature}s</li>
809809
* <li>{@link EnumFeature}s</li>
810+
* <li>{@link JsonNodeFeature}s</li>
810811
* <li>{@link MapperFeature}s</li>
811812
* <li>{@link SerializationFeature}s</li>
812813
* </ul>
@@ -824,6 +825,7 @@ public B configureForJackson2() {
824825
.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
825826
.disable(EnumFeature.READ_ENUMS_USING_TO_STRING)
826827
.disable(EnumFeature.WRITE_ENUMS_USING_TO_STRING)
828+
.enable(JsonNodeFeature.STRIP_TRAILING_BIGDECIMAL_ZEROES)
827829
.enable(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS)
828830
.disable(MapperFeature.DETECT_PARAMETER_NAMES) // [databind#5314]
829831
.disable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY)

src/main/java/tools/jackson/databind/cfg/MapperConfigBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ public final VisibilityChecker getDefaultVisibilityChecker(Class<?> baseType,
622622

623623
if (ClassUtil.isJDKClass(baseType)) {
624624
vc = VisibilityChecker.allPublicInstance();
625-
} else if (ClassUtil.isRecordType(baseType)) {
625+
} else if (baseType.isRecord()) {
626626
// 15-Jan-2023, tatu: [databind#3724] Records require slightly different defaults
627627
vc = _configOverrides.getDefaultRecordVisibility();
628628
} else {

0 commit comments

Comments
 (0)