Skip to content

Commit 7507f3e

Browse files
feat!: bump to spring 4 and jackson 3
troubleshooting jackson 3 conversions
1 parent 8ddfb73 commit 7507f3e

25 files changed

Lines changed: 259 additions & 245 deletions

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
id "com.github.mxenabled.coppuccino" version "7.+" apply false
3-
id "com.github.mxenabled.vogue" version "4.+" apply false
2+
id "com.github.mxenabled.coppuccino" version "7.0.2-SNAPSHOT" apply false
3+
id "com.github.mxenabled.vogue" version "4.0.2-SNAPSHOT" apply false
44
id "idea"
55
id "io.freefair.lombok" version "8.+" apply false
66
id "io.github.gradle-nexus.publish-plugin" version "1.1.+"
@@ -9,7 +9,7 @@ plugins {
99

1010
group "com.mx.path-mdx-model"
1111
description "Path MDX Model"
12-
version "22.0.0" // x-release-please-version
12+
version "22.0.1-SNAPSHOT" // x-release-please-version
1313

1414
def platformProject = "platform"
1515
def publishedProjects = [
@@ -26,8 +26,8 @@ subprojects {
2626
version rootProject.version
2727

2828
ext {
29-
pathCoreVersion = "[7.0,8.0)"
30-
springVersion = "3.5.14"
29+
pathCoreVersion = "7.0.2-SNAPSHOT"
30+
springVersion = "4.0.6"
3131
}
3232

3333
if (it.name != platformProject) {

mdx-gateway-generator/gradle.lockfile

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@
44
com.auth0:java-jwt:4.5.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
55
com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
66
com.fasterxml.jackson.core:jackson-annotations:2.21=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
7-
com.fasterxml.jackson.core:jackson-core:2.21.2=compileClasspath,testCompileClasspath
8-
com.fasterxml.jackson.core:jackson-core:2.21.3=runtimeClasspath,testRuntimeClasspath
9-
com.fasterxml.jackson.core:jackson-databind:2.21.2=compileClasspath,testCompileClasspath
107
com.fasterxml.jackson.core:jackson-databind:2.21.3=runtimeClasspath,testRuntimeClasspath
11-
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.21.2=compileClasspath,testCompileClasspath
12-
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.21.3=runtimeClasspath,testRuntimeClasspath
13-
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.2=compileClasspath,testCompileClasspath
14-
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.3=runtimeClasspath,testRuntimeClasspath
15-
com.fasterxml.jackson:jackson-bom:2.21.2=compileClasspath,testCompileClasspath
168
com.fasterxml.jackson:jackson-bom:2.21.3=runtimeClasspath,testRuntimeClasspath
179
com.fasterxml.woodstox:woodstox-core:7.1.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
1810
com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -28,14 +20,14 @@ com.google.guava:failureaccess:1.0.1=compileClasspath,runtimeClasspath,testCompi
2820
com.google.guava:guava:32.1.3-jre=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2921
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
3022
com.google.j2objc:j2objc-annotations:2.8=compileClasspath,testCompileClasspath
31-
com.mx.path-core:common:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
32-
com.mx.path-core:context:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
33-
com.mx.path-core:gateway-generator:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
34-
com.mx.path-core:gateway:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
35-
com.mx.path-core:messaging:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
36-
com.mx.path-core:platform:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
37-
com.mx.path-core:testing:7.0.1=testCompileClasspath,testRuntimeClasspath
38-
com.mx.path-core:utilities:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
23+
com.mx.path-core:common:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
24+
com.mx.path-core:context:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
25+
com.mx.path-core:gateway-generator:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
26+
com.mx.path-core:gateway:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
27+
com.mx.path-core:messaging:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
28+
com.mx.path-core:platform:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
29+
com.mx.path-core:testing:7.0.2-SNAPSHOT=testCompileClasspath,testRuntimeClasspath
30+
com.mx.path-core:utilities:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
3931
com.squareup:javapoet:1.13.0=runtimeClasspath,testRuntimeClasspath
4032
com.sun.istack:istack-commons-runtime:4.1.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
4133
com.sun.xml.bind:jaxb-core:4.0.6=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -107,4 +99,8 @@ org.spockframework:spock-bom:2.4-M6-groovy-3.0=testCompileClasspath,testRuntimeC
10799
org.spockframework:spock-core:2.4-M6-groovy-3.0=testCompileClasspath,testRuntimeClasspath
108100
org.xmlresolver:xmlresolver:5.3.3=spotbugs
109101
org.yaml:snakeyaml:2.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
102+
tools.jackson.core:jackson-core:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
103+
tools.jackson.core:jackson-databind:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
104+
tools.jackson.dataformat:jackson-dataformat-xml:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
105+
tools.jackson:jackson-bom:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
110106
empty=spotbugsPlugins

mdx-gateways/gradle.lockfile

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@
44
com.auth0:java-jwt:4.5.2=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
55
com.datadoghq:dd-trace-api:1.38.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
66
com.fasterxml.jackson.core:jackson-annotations:2.21=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
7-
com.fasterxml.jackson.core:jackson-core:2.21.2=compileClasspath,testCompileClasspath
8-
com.fasterxml.jackson.core:jackson-core:2.21.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath
9-
com.fasterxml.jackson.core:jackson-databind:2.21.2=compileClasspath,testCompileClasspath
107
com.fasterxml.jackson.core:jackson-databind:2.21.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath
11-
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.21.2=compileClasspath,testCompileClasspath
12-
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.21.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath
13-
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.2=compileClasspath,testCompileClasspath
14-
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath
15-
com.fasterxml.jackson:jackson-bom:2.21.2=compileClasspath,testCompileClasspath
168
com.fasterxml.jackson:jackson-bom:2.21.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath
179
com.fasterxml.woodstox:woodstox-core:7.1.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
1810
com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd
@@ -33,14 +25,14 @@ com.google.guava:guava:33.4.8-jre=checkstyle
3325
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
3426
com.google.j2objc:j2objc-annotations:2.8=compileClasspath,testCompileClasspath
3527
com.google.j2objc:j2objc-annotations:3.0.0=checkstyle
36-
com.mx.path-core:common:7.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
37-
com.mx.path-core:context:7.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
38-
com.mx.path-core:gateway-generator:7.0.1=annotationProcessor
39-
com.mx.path-core:gateway:7.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
40-
com.mx.path-core:messaging:7.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
41-
com.mx.path-core:platform:7.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
42-
com.mx.path-core:testing:7.0.1=testCompileClasspath,testRuntimeClasspath
43-
com.mx.path-core:utilities:7.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
28+
com.mx.path-core:common:7.0.2-SNAPSHOT=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
29+
com.mx.path-core:context:7.0.2-SNAPSHOT=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
30+
com.mx.path-core:gateway-generator:7.0.2-SNAPSHOT=annotationProcessor
31+
com.mx.path-core:gateway:7.0.2-SNAPSHOT=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
32+
com.mx.path-core:messaging:7.0.2-SNAPSHOT=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
33+
com.mx.path-core:platform:7.0.2-SNAPSHOT=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
34+
com.mx.path-core:testing:7.0.2-SNAPSHOT=testCompileClasspath,testRuntimeClasspath
35+
com.mx.path-core:utilities:7.0.2-SNAPSHOT=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
4436
com.puppycrawl.tools:checkstyle:10.25.0=checkstyle
4537
com.squareup:javapoet:1.13.0=annotationProcessor
4638
com.sun.istack:istack-commons-runtime:4.1.2=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -147,4 +139,8 @@ org.spockframework:spock-core:2.4-M6-groovy-3.0=testCompileClasspath,testRuntime
147139
org.xmlresolver:xmlresolver:5.2.2=checkstyle
148140
org.xmlresolver:xmlresolver:5.3.3=pmd,spotbugs
149141
org.yaml:snakeyaml:2.4=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
142+
tools.jackson.core:jackson-core:3.1.4=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
143+
tools.jackson.core:jackson-databind:3.1.4=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
144+
tools.jackson.dataformat:jackson-dataformat-xml:3.1.4=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
145+
tools.jackson:jackson-bom:3.1.4=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
150146
empty=spotbugsPlugins

mdx-models/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ coppuccino {
66

77
dependencies {
88
api "com.mx.path-core:gateway"
9-
api "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.21.2"
10-
api "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.2"
9+
api "tools.jackson.dataformat:jackson-dataformat-xml:[3.1.4,4.0.0)"
1110

1211
implementation "commons-beanutils:commons-beanutils:1.11.0"
1312
}

mdx-models/gradle.lockfile

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@
44
com.auth0:java-jwt:4.5.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
55
com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
66
com.fasterxml.jackson.core:jackson-annotations:2.21=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
7-
com.fasterxml.jackson.core:jackson-core:2.21.2=compileClasspath,testCompileClasspath
8-
com.fasterxml.jackson.core:jackson-core:2.21.3=runtimeClasspath,testRuntimeClasspath
9-
com.fasterxml.jackson.core:jackson-databind:2.21.2=compileClasspath,testCompileClasspath
107
com.fasterxml.jackson.core:jackson-databind:2.21.3=runtimeClasspath,testRuntimeClasspath
11-
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.21.2=compileClasspath,testCompileClasspath
12-
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.21.3=runtimeClasspath,testRuntimeClasspath
13-
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.2=compileClasspath,testCompileClasspath
14-
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.3=runtimeClasspath,testRuntimeClasspath
15-
com.fasterxml.jackson:jackson-bom:2.21.2=compileClasspath,testCompileClasspath
168
com.fasterxml.jackson:jackson-bom:2.21.3=runtimeClasspath,testRuntimeClasspath
179
com.fasterxml.woodstox:woodstox-core:7.1.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
1810
com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd
@@ -33,13 +25,13 @@ com.google.guava:guava:33.4.8-jre=checkstyle
3325
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
3426
com.google.j2objc:j2objc-annotations:2.8=compileClasspath,testCompileClasspath
3527
com.google.j2objc:j2objc-annotations:3.0.0=checkstyle
36-
com.mx.path-core:common:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
37-
com.mx.path-core:context:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
38-
com.mx.path-core:gateway:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
39-
com.mx.path-core:messaging:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
40-
com.mx.path-core:platform:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
41-
com.mx.path-core:testing:7.0.1=testCompileClasspath,testRuntimeClasspath
42-
com.mx.path-core:utilities:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
28+
com.mx.path-core:common:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
29+
com.mx.path-core:context:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
30+
com.mx.path-core:gateway:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
31+
com.mx.path-core:messaging:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
32+
com.mx.path-core:platform:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
33+
com.mx.path-core:testing:7.0.2-SNAPSHOT=testCompileClasspath,testRuntimeClasspath
34+
com.mx.path-core:utilities:7.0.2-SNAPSHOT=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
4335
com.puppycrawl.tools:checkstyle:10.25.0=checkstyle
4436
com.sun.istack:istack-commons-runtime:4.1.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
4537
com.sun.xml.bind:jaxb-core:4.0.6=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -142,4 +134,8 @@ org.spockframework:spock-core:2.4-M6-groovy-3.0=testCompileClasspath,testRuntime
142134
org.xmlresolver:xmlresolver:5.2.2=checkstyle
143135
org.xmlresolver:xmlresolver:5.3.3=pmd,spotbugs
144136
org.yaml:snakeyaml:2.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
137+
tools.jackson.core:jackson-core:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
138+
tools.jackson.core:jackson-databind:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
139+
tools.jackson.dataformat:jackson-dataformat-xml:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
140+
tools.jackson:jackson-bom:3.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
145141
empty=spotbugsPlugins

mdx-models/src/main/java/com/mx/path/model/mdx/model/Resources.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.time.LocalDate;
44

5-
import com.fasterxml.jackson.databind.module.SimpleModule;
65
import com.google.gson.GsonBuilder;
76
import com.google.gson.reflect.TypeToken;
87
import com.mx.path.model.mdx.model.account.Account;
@@ -103,6 +102,8 @@
103102
import com.mx.path.model.mdx.model.transfer.Transfer;
104103
import com.mx.path.model.mdx.model.transfer.TransferAmountOption;
105104

105+
import tools.jackson.databind.module.SimpleModule;
106+
106107
/**
107108
* Registration for all MDX resources
108109
* <p>

mdx-models/src/main/java/com/mx/path/model/mdx/model/ondemand/MdxOnDemandDeserializer.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
package com.mx.path.model.mdx.model.ondemand;
22

3-
import java.io.IOException;
4-
5-
import com.fasterxml.jackson.core.JsonParser;
6-
import com.fasterxml.jackson.core.JsonPointer;
7-
import com.fasterxml.jackson.core.TreeNode;
8-
import com.fasterxml.jackson.databind.DeserializationContext;
9-
import com.fasterxml.jackson.databind.JsonDeserializer;
10-
import com.fasterxml.jackson.databind.ObjectMapper;
113
import com.mx.path.core.common.model.ModelWrappable;
124

5+
import tools.jackson.core.JacksonException;
6+
import tools.jackson.core.JsonParser;
7+
import tools.jackson.core.JsonPointer;
8+
import tools.jackson.core.TreeNode;
9+
import tools.jackson.databind.DeserializationContext;
10+
import tools.jackson.databind.ObjectMapper;
11+
import tools.jackson.databind.ValueDeserializer;
12+
1313
/**
1414
* Custom deserializer for MDX OnDemand Resources
1515
* <p>
1616
* Digs out the node using the nodePath locator, then deserializes.
1717
*
1818
* @param <T>
1919
*/
20-
public class MdxOnDemandDeserializer<T extends ModelWrappable<?>> extends JsonDeserializer<T> {
20+
public class MdxOnDemandDeserializer<T extends ModelWrappable<?>> extends ValueDeserializer<T> {
2121
private static final ObjectMapper MAPPER = new ObjectMapper();
2222

2323
private final String nodePath;
@@ -32,7 +32,7 @@ public MdxOnDemandDeserializer(Class<?> target, String nodePath) {
3232

3333
@Override
3434
@SuppressWarnings("unchecked")
35-
public final T deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
35+
public final T deserialize(JsonParser p, DeserializationContext ctxt) throws JacksonException {
3636
TreeNode root = p.readValueAsTree();
3737
TreeNode value = root.at(JsonPointer.compile(nodePath));
3838

mdx-models/src/main/java/com/mx/path/model/mdx/model/ondemand/MdxOnDemandLocalDateSerializer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package com.mx.path.model.mdx.model.ondemand;
22

3-
import java.io.IOException;
43
import java.time.LocalDate;
54
import java.time.format.DateTimeFormatter;
65

7-
import com.fasterxml.jackson.core.JsonGenerator;
8-
import com.fasterxml.jackson.databind.SerializerProvider;
9-
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
6+
import tools.jackson.core.JacksonException;
7+
import tools.jackson.core.JsonGenerator;
8+
import tools.jackson.databind.SerializationContext;
9+
import tools.jackson.databind.ser.std.StdSerializer;
1010

1111
/**
1212
* Handles serialization of LocalDate for MDX OnDemand responses
@@ -24,7 +24,7 @@ public MdxOnDemandLocalDateSerializer(Class<LocalDate> t) {
2424
}
2525

2626
@Override
27-
public final void serialize(LocalDate value, JsonGenerator gen, SerializerProvider provider) throws IOException {
27+
public final void serialize(LocalDate value, JsonGenerator gen, SerializationContext context) throws JacksonException {
2828
gen.writeString(FORMATTER.format(value));
2929
}
3030

0 commit comments

Comments
 (0)