Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump jackson.version from 2.14.2 to 2.15.0 #563

Merged
merged 2 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,19 @@ public static List<Entry> directoryFromBytes(byte[] bytes) {
*/
public record JsonMetadata(
@JsonProperty("vector_layers") List<LayerStats.VectorLayer> vectorLayers,
@JsonAnyGetter @JsonAnySetter Map<String, String> otherMetadata
@JsonAnyGetter Map<String, String> otherMetadata
) {

@JsonCreator
JsonMetadata(@JsonProperty("vector_layers") List<LayerStats.VectorLayer> vectorLayers) {
public JsonMetadata(@JsonProperty("vector_layers") List<LayerStats.VectorLayer> vectorLayers) {
this(vectorLayers, new HashMap<>());
}

@JsonAnySetter
private void setExtraMetadata(String key, String val) {
otherMetadata.put(key, val);
}

public byte[] toBytes() {

try {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.source.excludeResources>true</maven.source.excludeResources>
<jackson.version>2.14.2</jackson.version>
<jackson.version>2.15.0</jackson.version>
<junit.version>5.9.2</junit.version>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>onthegomap</sonar.organization>
Expand Down