Skip to content

Commit 0cb0089

Browse files
committed
Regenerate Java samples
1 parent 3381c11 commit 0cb0089

45 files changed

Lines changed: 45 additions & 45 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/Example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public ExampleDeserializer(Class<?> vc) {
8080

8181
@Override
8282
public Example deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
83-
JsonNode tree = jp.readValueAsTree();
83+
JsonNode tree = ctxt.readTree(jp);
8484
Object deserialized = null;
8585
boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
8686
int match = 0;

samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/Example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public ExampleDeserializer(Class<?> vc) {
8080

8181
@Override
8282
public Example deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
83-
JsonNode tree = jp.readValueAsTree();
83+
JsonNode tree = ctxt.readTree(jp);
8484
Object deserialized = null;
8585
boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
8686
int match = 0;

samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/PostRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public PostRequestDeserializer(Class<?> vc) {
8686

8787
@Override
8888
public PostRequest deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
89-
JsonNode tree = jp.readValueAsTree();
89+
JsonNode tree = ctxt.readTree(jp);
9090
Object deserialized = null;
9191
boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
9292
int match = 0;

samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public FruitDeserializer(Class<?> vc) {
9191

9292
@Override
9393
public Fruit deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
94-
JsonNode tree = jp.readValueAsTree();
94+
JsonNode tree = ctxt.readTree(jp);
9595
Object deserialized = null;
9696
boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
9797
int match = 0;

samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public FruitReqDeserializer(Class<?> vc) {
9191

9292
@Override
9393
public FruitReq deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
94-
JsonNode tree = jp.readValueAsTree();
94+
JsonNode tree = ctxt.readTree(jp);
9595
Object deserialized = null;
9696
boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
9797
int match = 0;

samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public GmFruitDeserializer(Class<?> vc) {
8888

8989
@Override
9090
public GmFruit deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
91-
JsonNode tree = jp.readValueAsTree();
91+
JsonNode tree = ctxt.readTree(jp);
9292

9393
Object deserialized = null;
9494
// deserialize Apple (nullable)

samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public MammalDeserializer(Class<?> vc) {
9898

9999
@Override
100100
public Mammal deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
101-
JsonNode tree = jp.readValueAsTree();
101+
JsonNode tree = ctxt.readTree(jp);
102102
Object deserialized = null;
103103
Mammal newMammal = new Mammal();
104104
Map<String, Object> result2 = tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Map<String, Object>>() {});

samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public MammalAnyofDeserializer(Class<?> vc) {
9595

9696
@Override
9797
public MammalAnyof deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
98-
JsonNode tree = jp.readValueAsTree();
98+
JsonNode tree = ctxt.readTree(jp);
9999

100100
Object deserialized = null;
101101
Class<?> cls = JSON.getClassForElement(tree, new MammalAnyof().getClass());

samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public NullableShapeDeserializer(Class<?> vc) {
9797

9898
@Override
9999
public NullableShape deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
100-
JsonNode tree = jp.readValueAsTree();
100+
JsonNode tree = ctxt.readTree(jp);
101101
Object deserialized = null;
102102
NullableShape newNullableShape = new NullableShape();
103103
Map<String, Object> result2 = tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Map<String, Object>>() {});

samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public PigDeserializer(Class<?> vc) {
9797

9898
@Override
9999
public Pig deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
100-
JsonNode tree = jp.readValueAsTree();
100+
JsonNode tree = ctxt.readTree(jp);
101101
Object deserialized = null;
102102
Pig newPig = new Pig();
103103
Map<String, Object> result2 = tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Map<String, Object>>() {});

0 commit comments

Comments
 (0)