Skip to content
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 @@ -238,7 +238,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
/**
* Set the instance that matches the anyOf child schema, check
* the instance parameter is valid against the anyOf child schemas:
* {{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}}
* {{#anyOf}}{{.}}{{^-last}}, {{/-last}}{{/anyOf}}
*
* It could be an instance of the 'anyOf' schemas.
*/
Expand Down Expand Up @@ -276,9 +276,9 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im

/**
* Get the actual instance, which can be the following:
* {{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}}
* {{#anyOf}}{{.}}{{^-last}}, {{/-last}}{{/anyOf}}
*
* @return The actual instance ({{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}})
* @return The actual instance ({{#anyOf}}{{.}}{{^-last}}, {{/-last}}{{/anyOf}})
*/
@SuppressWarnings("unchecked")
@Override
Expand All @@ -290,11 +290,11 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
{{#anyOf}}
{{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}}
/**
* Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`,
* Get the actual instance of `{{dataType}}`. If the actual instance is not `{{dataType}}`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `{{{dataType}}}`
* @throws ClassCastException if the instance is not `{{{dataType}}}`
* @return The actual instance of `{{dataType}}`
* @throws ClassCastException if the instance is not `{{dataType}}`
*/
public {{{dataType}}} get{{#sanitizeDataType}}{{{dataType}}}{{/sanitizeDataType}}() throws ClassCastException {
return ({{{dataType}}})super.getActualInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
/**
* Set the instance that matches the oneOf child schema, check
* the instance parameter is valid against the oneOf child schemas:
* {{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/oneOf}}
* {{#oneOf}}{{.}}{{^-last}}, {{/-last}}{{/oneOf}}
*
* It could be an instance of the 'oneOf' schemas.
*/
Expand Down Expand Up @@ -354,9 +354,9 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im

/**
* Get the actual instance, which can be the following:
* {{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/oneOf}}
* {{#oneOf}}{{.}}{{^-last}}, {{/-last}}{{/oneOf}}
*
* @return The actual instance ({{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/oneOf}})
* @return The actual instance ({{#oneOf}}{{.}}{{^-last}}, {{/-last}}{{/oneOf}})
*/
@SuppressWarnings("unchecked")
@Override
Expand All @@ -368,12 +368,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
{{#oneOf}}
{{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}}
/**
* Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`,
* Get the actual instance of `{{dataType}}`. If the actual instance is not `{{dataType}}`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `{{{dataType}}}`
* @throws ClassCastException if the instance is not `{{{dataType}}}`
* @return The actual instance of `{{dataType}}`
* @throws ClassCastException if the instance is not `{{dataType}}`
*/
@SuppressWarnings("unchecked")
public {{{dataType}}} get{{#sanitizeDataType}}{{{dataType}}}{{/sanitizeDataType}}() throws ClassCastException {
return ({{{dataType}}})super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public Map<String, Class<?>> getSchemas() {
/**
* Set the instance that matches the oneOf child schema, check
* the instance parameter is valid against the oneOf child schemas:
* List<@Valid OneOf1>, OneOf1
* List&lt;@Valid OneOf1&gt;, OneOf1
*
* It could be an instance of the 'oneOf' schemas.
*/
Expand All @@ -207,9 +207,9 @@ public void setActualInstance(Object instance) {

/**
* Get the actual instance, which can be the following:
* List<@Valid OneOf1>, OneOf1
* List&lt;@Valid OneOf1&gt;, OneOf1
*
* @return The actual instance (List<@Valid OneOf1>, OneOf1)
* @return The actual instance (List&lt;@Valid OneOf1&gt;, OneOf1)
*/
@SuppressWarnings("unchecked")
@Override
Expand All @@ -218,12 +218,13 @@ public Object getActualInstance() {
}

/**
* Get the actual instance of `List<@Valid OneOf1>`. If the actual instance is not `List<@Valid OneOf1>`,
* Get the actual instance of `List&lt;@Valid OneOf1&gt;`. If the actual instance is not `List&lt;@Valid OneOf1&gt;`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `List<@Valid OneOf1>`
* @throws ClassCastException if the instance is not `List<@Valid OneOf1>`
* @return The actual instance of `List&lt;@Valid OneOf1&gt;`
* @throws ClassCastException if the instance is not `List&lt;@Valid OneOf1&gt;`
*/
@SuppressWarnings("unchecked")
public List<@Valid OneOf1> getListOneOf1() throws ClassCastException {
return (List<@Valid OneOf1>)super.getActualInstance();
}
Expand All @@ -235,6 +236,7 @@ public Object getActualInstance() {
* @return The actual instance of `OneOf1`
* @throws ClassCastException if the instance is not `OneOf1`
*/
@SuppressWarnings("unchecked")
public OneOf1 getOneOf1() throws ClassCastException {
return (OneOf1)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public Object getActualInstance() {
* @return The actual instance of `String`
* @throws ClassCastException if the instance is not `String`
*/
@SuppressWarnings("unchecked")
public String getString() throws ClassCastException {
return (String)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public Object getActualInstance() {
* @return The actual instance of `String`
* @throws ClassCastException if the instance is not `String`
*/
@SuppressWarnings("unchecked")
public String getString() throws ClassCastException {
return (String)super.getActualInstance();
}
Expand All @@ -213,6 +214,7 @@ public String getString() throws ClassCastException {
* @return The actual instance of `Integer`
* @throws ClassCastException if the instance is not `Integer`
*/
@SuppressWarnings("unchecked")
public Integer getInteger() throws ClassCastException {
return (Integer)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public Object getActualInstance() {
* @return The actual instance of `String`
* @throws ClassCastException if the instance is not `String`
*/
@SuppressWarnings("unchecked")
public String getString() throws ClassCastException {
return (String)super.getActualInstance();
}
Expand All @@ -212,6 +213,7 @@ public String getString() throws ClassCastException {
* @return The actual instance of `Integer`
* @throws ClassCastException if the instance is not `Integer`
*/
@SuppressWarnings("unchecked")
public Integer getInteger() throws ClassCastException {
return (Integer)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public Object getActualInstance() {
* @return The actual instance of `String`
* @throws ClassCastException if the instance is not `String`
*/
@SuppressWarnings("unchecked")
public String getString() throws ClassCastException {
return (String)super.getActualInstance();
}
Expand All @@ -212,6 +213,7 @@ public String getString() throws ClassCastException {
* @return The actual instance of `Integer`
* @throws ClassCastException if the instance is not `Integer`
*/
@SuppressWarnings("unchecked")
public Integer getInteger() throws ClassCastException {
return (Integer)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public Map<String, Class<?>> getSchemas() {
/**
* Set the instance that matches the oneOf child schema, check
* the instance parameter is valid against the oneOf child schemas:
* List<String>, String
* List&lt;String&gt;, String
*
* It could be an instance of the 'oneOf' schemas.
*/
Expand All @@ -198,9 +198,9 @@ public void setActualInstance(Object instance) {

/**
* Get the actual instance, which can be the following:
* List<String>, String
* List&lt;String&gt;, String
*
* @return The actual instance (List<String>, String)
* @return The actual instance (List&lt;String&gt;, String)
*/
@SuppressWarnings("unchecked")
@Override
Expand All @@ -215,17 +215,19 @@ public Object getActualInstance() {
* @return The actual instance of `String`
* @throws ClassCastException if the instance is not `String`
*/
@SuppressWarnings("unchecked")
public String getString() throws ClassCastException {
return (String)super.getActualInstance();
}

/**
* Get the actual instance of `List<String>`. If the actual instance is not `List<String>`,
* Get the actual instance of `List&lt;String&gt;`. If the actual instance is not `List&lt;String&gt;`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `List<String>`
* @throws ClassCastException if the instance is not `List<String>`
* @return The actual instance of `List&lt;String&gt;`
* @throws ClassCastException if the instance is not `List&lt;String&gt;`
*/
@SuppressWarnings("unchecked")
public List<String> getListString() throws ClassCastException {
return (List<String>)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public Object getActualInstance() {
* @return The actual instance of `String`
* @throws ClassCastException if the instance is not `String`
*/
@SuppressWarnings("unchecked")
public String getString() throws ClassCastException {
return (String)super.getActualInstance();
}
Expand All @@ -212,6 +213,7 @@ public String getString() throws ClassCastException {
* @return The actual instance of `Boolean`
* @throws ClassCastException if the instance is not `Boolean`
*/
@SuppressWarnings("unchecked")
public Boolean getBoolean() throws ClassCastException {
return (Boolean)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ public Object getActualInstance() {
* @return The actual instance of `Pet`
* @throws ClassCastException if the instance is not `Pet`
*/
@SuppressWarnings("unchecked")
public Pet getPet() throws ClassCastException {
return (Pet)super.getActualInstance();
}
Expand All @@ -222,6 +223,7 @@ public Pet getPet() throws ClassCastException {
* @return The actual instance of `Order`
* @throws ClassCastException if the instance is not `Order`
*/
@SuppressWarnings("unchecked")
public Order getOrder() throws ClassCastException {
return (Order)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public Map<String, Class<?>> getSchemas() {
/**
* Set the instance that matches the anyOf child schema, check
* the instance parameter is valid against the anyOf child schemas:
* Integer, List<String>
* Integer, List&lt;String&gt;
*
* It could be an instance of the 'anyOf' schemas.
*/
Expand All @@ -193,9 +193,9 @@ public void setActualInstance(Object instance) {

/**
* Get the actual instance, which can be the following:
* Integer, List<String>
* Integer, List&lt;String&gt;
*
* @return The actual instance (Integer, List<String>)
* @return The actual instance (Integer, List&lt;String&gt;)
*/
@SuppressWarnings("unchecked")
@Override
Expand All @@ -215,11 +215,11 @@ public Integer getInteger() throws ClassCastException {
}

/**
* Get the actual instance of `List<String>`. If the actual instance is not `List<String>`,
* Get the actual instance of `List&lt;String&gt;`. If the actual instance is not `List&lt;String&gt;`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `List<String>`
* @throws ClassCastException if the instance is not `List<String>`
* @return The actual instance of `List&lt;String&gt;`
* @throws ClassCastException if the instance is not `List&lt;String&gt;`
*/
public List<String> getListString() throws ClassCastException {
return (List<String>)super.getActualInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public Map<String, Class<?>> getSchemas() {
/**
* Set the instance that matches the oneOf child schema, check
* the instance parameter is valid against the oneOf child schemas:
* Integer, List<String>
* Integer, List&lt;String&gt;
*
* It could be an instance of the 'oneOf' schemas.
*/
Expand All @@ -198,9 +198,9 @@ public void setActualInstance(Object instance) {

/**
* Get the actual instance, which can be the following:
* Integer, List<String>
* Integer, List&lt;String&gt;
*
* @return The actual instance (Integer, List<String>)
* @return The actual instance (Integer, List&lt;String&gt;)
*/
@SuppressWarnings("unchecked")
@Override
Expand All @@ -215,17 +215,19 @@ public Object getActualInstance() {
* @return The actual instance of `Integer`
* @throws ClassCastException if the instance is not `Integer`
*/
@SuppressWarnings("unchecked")
public Integer getInteger() throws ClassCastException {
return (Integer)super.getActualInstance();
}

/**
* Get the actual instance of `List<String>`. If the actual instance is not `List<String>`,
* Get the actual instance of `List&lt;String&gt;`. If the actual instance is not `List&lt;String&gt;`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `List<String>`
* @throws ClassCastException if the instance is not `List<String>`
* @return The actual instance of `List&lt;String&gt;`
* @throws ClassCastException if the instance is not `List&lt;String&gt;`
*/
@SuppressWarnings("unchecked")
public List<String> getListString() throws ClassCastException {
return (List<String>)super.getActualInstance();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public Map<String, Class<?>> getSchemas() {
/**
* Set the instance that matches the anyOf child schema, check
* the instance parameter is valid against the anyOf child schemas:
* List<Integer>, List<String>
* List&lt;Integer&gt;, List&lt;String&gt;
*
* It could be an instance of the 'anyOf' schemas.
*/
Expand All @@ -168,9 +168,9 @@ public void setActualInstance(Object instance) {

/**
* Get the actual instance, which can be the following:
* List<Integer>, List<String>
* List&lt;Integer&gt;, List&lt;String&gt;
*
* @return The actual instance (List<Integer>, List<String>)
* @return The actual instance (List&lt;Integer&gt;, List&lt;String&gt;)
*/
@SuppressWarnings("unchecked")
@Override
Expand All @@ -179,22 +179,22 @@ public Object getActualInstance() {
}

/**
* Get the actual instance of `List<String>`. If the actual instance is not `List<String>`,
* Get the actual instance of `List&lt;String&gt;`. If the actual instance is not `List&lt;String&gt;`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `List<String>`
* @throws ClassCastException if the instance is not `List<String>`
* @return The actual instance of `List&lt;String&gt;`
* @throws ClassCastException if the instance is not `List&lt;String&gt;`
*/
public List<String> getListString() throws ClassCastException {
return (List<String>)super.getActualInstance();
}

/**
* Get the actual instance of `List<Integer>`. If the actual instance is not `List<Integer>`,
* Get the actual instance of `List&lt;Integer&gt;`. If the actual instance is not `List&lt;Integer&gt;`,
* the ClassCastException will be thrown.
*
* @return The actual instance of `List<Integer>`
* @throws ClassCastException if the instance is not `List<Integer>`
* @return The actual instance of `List&lt;Integer&gt;`
* @throws ClassCastException if the instance is not `List&lt;Integer&gt;`
*/
public List<Integer> getListInteger() throws ClassCastException {
return (List<Integer>)super.getActualInstance();
Expand Down
Loading
Loading