mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-17 00:21:19 +00:00
[Java][okhttp-gson] remove unreachable code from templates (#17057)
* Remove checks for jackson and jsonb from okhttp-gson templates * regenerate samples
This commit is contained in:
@@ -18,8 +18,6 @@ import java.util.Objects;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Map;
|
||||
|
||||
//import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
|
||||
*/
|
||||
|
||||
@@ -63,7 +63,6 @@ public class Bird {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
@@ -77,14 +76,12 @@ public class Bird {
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
public void setSize(String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public Bird color(String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
}
|
||||
@@ -98,7 +95,6 @@ public class Bird {
|
||||
return color;
|
||||
}
|
||||
|
||||
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ public class Category {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@@ -77,14 +76,12 @@ public class Category {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Category name(String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@@ -98,7 +95,6 @@ public class Category {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ public class DataQuery extends Query {
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
}
|
||||
@@ -85,14 +84,12 @@ public class DataQuery extends Query {
|
||||
return suffix;
|
||||
}
|
||||
|
||||
|
||||
public void setSuffix(String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery text(String text) {
|
||||
|
||||
this.text = text;
|
||||
return this;
|
||||
}
|
||||
@@ -106,14 +103,12 @@ public class DataQuery extends Query {
|
||||
return text;
|
||||
}
|
||||
|
||||
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery date(OffsetDateTime date) {
|
||||
|
||||
this.date = date;
|
||||
return this;
|
||||
}
|
||||
@@ -127,7 +122,6 @@ public class DataQuery extends Query {
|
||||
return date;
|
||||
}
|
||||
|
||||
|
||||
public void setDate(OffsetDateTime date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,6 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
}
|
||||
@@ -167,14 +166,12 @@ public class DefaultValue {
|
||||
return arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
}
|
||||
@@ -196,14 +193,12 @@ public class DefaultValue {
|
||||
return arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
}
|
||||
@@ -225,14 +220,12 @@ public class DefaultValue {
|
||||
return arrayStringDefault;
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
}
|
||||
@@ -254,14 +247,12 @@ public class DefaultValue {
|
||||
return arrayIntegerDefault;
|
||||
}
|
||||
|
||||
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
}
|
||||
@@ -283,14 +274,12 @@ public class DefaultValue {
|
||||
return arrayString;
|
||||
}
|
||||
|
||||
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
return this;
|
||||
}
|
||||
@@ -312,14 +301,12 @@ public class DefaultValue {
|
||||
return arrayStringNullable;
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
return this;
|
||||
}
|
||||
@@ -341,14 +328,12 @@ public class DefaultValue {
|
||||
return arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
|
||||
this.stringNullable = stringNullable;
|
||||
return this;
|
||||
}
|
||||
@@ -362,7 +347,6 @@ public class DefaultValue {
|
||||
return stringNullable;
|
||||
}
|
||||
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
@@ -68,7 +68,6 @@ public class NumberPropertiesOnly {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
|
||||
this.number = number;
|
||||
return this;
|
||||
}
|
||||
@@ -82,14 +81,12 @@ public class NumberPropertiesOnly {
|
||||
return number;
|
||||
}
|
||||
|
||||
|
||||
public void setNumber(BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
|
||||
this._float = _float;
|
||||
return this;
|
||||
}
|
||||
@@ -103,14 +100,12 @@ public class NumberPropertiesOnly {
|
||||
return _float;
|
||||
}
|
||||
|
||||
|
||||
public void setFloat(Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
|
||||
this._double = _double;
|
||||
return this;
|
||||
}
|
||||
@@ -126,7 +121,6 @@ public class NumberPropertiesOnly {
|
||||
return _double;
|
||||
}
|
||||
|
||||
|
||||
public void setDouble(Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
@@ -137,7 +137,6 @@ public class Pet {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@@ -151,14 +150,12 @@ public class Pet {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Pet name(String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@@ -172,14 +169,12 @@ public class Pet {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public Pet category(Category category) {
|
||||
|
||||
this.category = category;
|
||||
return this;
|
||||
}
|
||||
@@ -193,14 +188,12 @@ public class Pet {
|
||||
return category;
|
||||
}
|
||||
|
||||
|
||||
public void setCategory(Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
}
|
||||
@@ -222,14 +215,12 @@ public class Pet {
|
||||
return photoUrls;
|
||||
}
|
||||
|
||||
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -251,14 +242,12 @@ public class Pet {
|
||||
return tags;
|
||||
}
|
||||
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
@@ -272,7 +261,6 @@ public class Pet {
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
public void setStatus(StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,6 @@ public class Query {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@@ -133,14 +132,12 @@ public class Query {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
}
|
||||
@@ -162,7 +159,6 @@ public class Query {
|
||||
return outcomes;
|
||||
}
|
||||
|
||||
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ public class Tag {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@@ -77,14 +76,12 @@ public class Tag {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Tag name(String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@@ -98,7 +95,6 @@ public class Tag {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
@@ -85,14 +84,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
public void setSize(String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
}
|
||||
@@ -106,14 +103,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return color;
|
||||
}
|
||||
|
||||
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@@ -127,14 +122,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@@ -148,7 +141,6 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,6 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
|
||||
this.values = values;
|
||||
return this;
|
||||
}
|
||||
@@ -83,7 +82,6 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
return values;
|
||||
}
|
||||
|
||||
|
||||
public void setValues(List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user