Upgrade to Jackson Bom 2.19.0

Closes gh-45542
This commit is contained in:
Stéphane Nicoll
2025-05-14 12:38:43 +02:00
parent 2ca0ac075b
commit e1ff4fbaf9
4 changed files with 11 additions and 8 deletions

View File

@@ -118,8 +118,8 @@ final class BuildpackLayersMetadata extends MappedObject {
private static Buildpacks fromJson(JsonNode node) {
Buildpacks buildpacks = new Buildpacks();
node.fields()
.forEachRemaining((field) -> buildpacks.addBuildpackVersions(field.getKey(),
node.properties()
.forEach((field) -> buildpacks.addBuildpackVersions(field.getKey(),
BuildpackVersions.fromJson(field.getValue())));
return buildpacks;
}
@@ -140,8 +140,8 @@ final class BuildpackLayersMetadata extends MappedObject {
private static BuildpackVersions fromJson(JsonNode node) {
BuildpackVersions versions = new BuildpackVersions();
node.fields()
.forEachRemaining((field) -> versions.addBuildpackVersion(field.getKey(),
node.properties()
.forEach((field) -> versions.addBuildpackVersion(field.getKey(),
BuildpackLayerDetails.fromJson(field.getValue())));
return versions;
}

View File

@@ -90,8 +90,8 @@ public class MappedObject {
protected <V> Map<String, V> mapAt(String expression, Function<JsonNode, V> valueMapper) {
Map<String, V> map = new LinkedHashMap<>();
getNode().at(expression)
.fields()
.forEachRemaining((entry) -> map.put(entry.getKey(), valueMapper.apply(entry.getValue())));
.properties()
.forEach((entry) -> map.put(entry.getKey(), valueMapper.apply(entry.getValue())));
return Collections.unmodifiableMap(map);
}