Upgrade to Jackson Bom 2.19.0
Closes gh-45542
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user