forked from loafle/openapi-generator-original
remove supportJava6 option (#8514)
This commit is contained in:
@@ -35,7 +35,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|invokerPackage|root package for generated code| |org.openapitools.client|
|
|invokerPackage|root package for generated code| |org.openapitools.client|
|
||||||
|java8|Use Java8 classes instead of third party equivalents. Starting in 5.x, JDK8 is the default and the support for JDK7, JDK6 has been dropped|<dl><dt>**true**</dt><dd>Use Java 8 classes such as Base64</dd><dt>**false**</dt><dd>Various third party libraries as needed</dd></dl>|true|
|
|java8|Use Java8 classes instead of third party equivalents. Starting in 5.x, JDK8 is the default and the support for JDK7, JDK6 has been dropped|<dl><dt>**true**</dt><dd>Use Java 8 classes such as Base64</dd><dt>**false**</dt><dd>Various third party libraries as needed</dd></dl>|true|
|
||||||
|legacyDiscriminatorBehavior|Set to true for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|
|legacyDiscriminatorBehavior|Set to true for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|
||||||
|library|library template (sub-template) to use|<dl><dt>**jersey1**</dt><dd>HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable Java6 support using '-DsupportJava6=true'. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead.</dd><dt>**jersey2**</dt><dd>HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x</dd><dt>**feign**</dt><dd>HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.</dd><dt>**okhttp-gson**</dt><dd>[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.</dd><dt>**retrofit2**</dt><dd>HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)</dd><dt>**resttemplate**</dt><dd>HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x</dd><dt>**webclient**</dt><dd>HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x</dd><dt>**resteasy**</dt><dd>HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**vertx**</dt><dd>HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**google-api-client**</dt><dd>HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x</dd><dt>**rest-assured**</dt><dd>HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8</dd><dt>**native**</dt><dd>HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+</dd><dt>**microprofile**</dt><dd>HTTP client: Microprofile client 1.x. JSON processing: Jackson 2.9.x</dd></dl>|okhttp-gson|
|
|library|library template (sub-template) to use|<dl><dt>**jersey1**</dt><dd>HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead.</dd><dt>**jersey2**</dt><dd>HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x</dd><dt>**feign**</dt><dd>HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.</dd><dt>**okhttp-gson**</dt><dd>[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.</dd><dt>**retrofit2**</dt><dd>HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)</dd><dt>**resttemplate**</dt><dd>HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x</dd><dt>**webclient**</dt><dd>HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x</dd><dt>**resteasy**</dt><dd>HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**vertx**</dt><dd>HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**google-api-client**</dt><dd>HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x</dd><dt>**rest-assured**</dt><dd>HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8</dd><dt>**native**</dt><dd>HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+</dd><dt>**microprofile**</dt><dd>HTTP client: Microprofile client 1.x. JSON processing: Jackson 2.9.x</dd></dl>|okhttp-gson|
|
||||||
|licenseName|The name of the license| |Unlicense|
|
|licenseName|The name of the license| |Unlicense|
|
||||||
|licenseUrl|The URL of the license| |http://unlicense.org|
|
|licenseUrl|The URL of the license| |http://unlicense.org|
|
||||||
|microprofileFramework|Framework for microprofile. Possible values "kumuluzee"| |null|
|
|microprofileFramework|Framework for microprofile. Possible values "kumuluzee"| |null|
|
||||||
@@ -57,7 +57,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
||||||
|sourceFolder|source folder for generated code| |src/main/java|
|
|sourceFolder|source folder for generated code| |src/main/java|
|
||||||
|supportJava6|Whether to support Java6 with the Jersey1 library. This option has been deprecated and will be removed in the 5.x release| |false|
|
|
||||||
|useAbstractionForFiles|Use alternative types instead of java.io.File to allow passing bytes without a file on disk. Available on resttemplate library| |false|
|
|useAbstractionForFiles|Use alternative types instead of java.io.File to allow passing bytes without a file on disk. Available on resttemplate library| |false|
|
||||||
|useBeanValidation|Use BeanValidation API annotations| |false|
|
|useBeanValidation|Use BeanValidation API annotations| |false|
|
||||||
|useGzipFeature|Send gzip-encoded requests| |false|
|
|useGzipFeature|Send gzip-encoded requests| |false|
|
||||||
|
|||||||
@@ -142,7 +142,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
cliOptions.add(CliOption.newBoolean(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
|
cliOptions.add(CliOption.newBoolean(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
|
||||||
cliOptions.add(CliOption.newBoolean(USE_PLAY_WS, "Use Play! Async HTTP client (Play WS API)"));
|
cliOptions.add(CliOption.newBoolean(USE_PLAY_WS, "Use Play! Async HTTP client (Play WS API)"));
|
||||||
cliOptions.add(CliOption.newString(PLAY_VERSION, "Version of Play! Framework (possible values \"play24\" (Deprecated), \"play25\" (Deprecated), \"play26\" (Default))"));
|
cliOptions.add(CliOption.newString(PLAY_VERSION, "Version of Play! Framework (possible values \"play24\" (Deprecated), \"play25\" (Deprecated), \"play26\" (Default))"));
|
||||||
cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1 library. This option has been deprecated and will be removed in the 5.x release"));
|
|
||||||
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
|
cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations"));
|
||||||
cliOptions.add(CliOption.newBoolean(PERFORM_BEANVALIDATION, "Perform BeanValidation"));
|
cliOptions.add(CliOption.newBoolean(PERFORM_BEANVALIDATION, "Perform BeanValidation"));
|
||||||
cliOptions.add(CliOption.newBoolean(USE_GZIP_FEATURE, "Send gzip-encoded requests"));
|
cliOptions.add(CliOption.newBoolean(USE_GZIP_FEATURE, "Send gzip-encoded requests"));
|
||||||
@@ -154,7 +153,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
cliOptions.add(CliOption.newBoolean(USE_ABSTRACTION_FOR_FILES, "Use alternative types instead of java.io.File to allow passing bytes without a file on disk. Available on " + RESTTEMPLATE + " library"));
|
cliOptions.add(CliOption.newBoolean(USE_ABSTRACTION_FOR_FILES, "Use alternative types instead of java.io.File to allow passing bytes without a file on disk. Available on " + RESTTEMPLATE + " library"));
|
||||||
cliOptions.add(CliOption.newBoolean(DYNAMIC_OPERATIONS, "Generate operations dynamically at runtime from an OAS", this.dynamicOperations));
|
cliOptions.add(CliOption.newBoolean(DYNAMIC_OPERATIONS, "Generate operations dynamically at runtime from an OAS", this.dynamicOperations));
|
||||||
|
|
||||||
supportedLibraries.put(JERSEY1, "HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable Java6 support using '-DsupportJava6=true'. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead.");
|
supportedLibraries.put(JERSEY1, "HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead.");
|
||||||
supportedLibraries.put(JERSEY2, "HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x");
|
supportedLibraries.put(JERSEY2, "HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x");
|
||||||
supportedLibraries.put(FEIGN, "HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.");
|
supportedLibraries.put(FEIGN, "HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.");
|
||||||
supportedLibraries.put(OKHTTP_GSON, "[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.");
|
supportedLibraries.put(OKHTTP_GSON, "[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.");
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
Building the API client library requires:
|
Building the API client library requires:
|
||||||
|
|
||||||
1. Java {{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}+
|
1. Java {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}+
|
||||||
2. Maven/Gradle
|
2. Maven/Gradle
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -34,11 +34,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -47,7 +42,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -92,11 +86,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -105,7 +94,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -46,7 +41,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -91,11 +85,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -104,7 +93,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
|
|||||||
@@ -144,11 +144,6 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@@ -157,7 +152,6 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -166,17 +160,12 @@
|
|||||||
<version>3.1.1</version>
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{^java8}}
|
{{^java8}}
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|||||||
@@ -34,15 +34,9 @@ import java.security.cert.X509Certificate;
|
|||||||
import java.security.KeyManagementException;
|
import java.security.KeyManagementException;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.security.SecureRandom;
|
import java.security.SecureRandom;
|
||||||
{{^supportJava6}}
|
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.StandardCopyOption;
|
import java.nio.file.StandardCopyOption;
|
||||||
import org.glassfish.jersey.logging.LoggingFeature;
|
import org.glassfish.jersey.logging.LoggingFeature;
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
import org.apache.commons.io.FileUtils;
|
|
||||||
import org.glassfish.jersey.filter.LoggingFilter;
|
|
||||||
{{/supportJava6}}
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@@ -997,13 +991,7 @@ public class ApiClient{{#java8}} extends JavaTimeFormatter{{/java8}} {
|
|||||||
public File downloadFileFromResponse(Response response) throws ApiException {
|
public File downloadFileFromResponse(Response response) throws ApiException {
|
||||||
try {
|
try {
|
||||||
File file = prepareDownloadFile(response);
|
File file = prepareDownloadFile(response);
|
||||||
{{^supportJava6}}
|
|
||||||
Files.copy(response.readEntity(InputStream.class), file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
Files.copy(response.readEntity(InputStream.class), file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
// Java6 falls back to commons.io for file copying
|
|
||||||
FileUtils.copyToFile(response.readEntity(InputStream.class), file);
|
|
||||||
{{/supportJava6}}
|
|
||||||
return file;
|
return file;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
@@ -1259,15 +1247,10 @@ public class ApiClient{{#java8}} extends JavaTimeFormatter{{/java8}} {
|
|||||||
// turn off compliance validation to be able to send payloads with DELETE calls
|
// turn off compliance validation to be able to send payloads with DELETE calls
|
||||||
clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
|
clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
|
||||||
if (debugging) {
|
if (debugging) {
|
||||||
{{^supportJava6}}
|
|
||||||
clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */));
|
clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */));
|
||||||
clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
|
clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
|
||||||
// Set logger to ALL
|
// Set logger to ALL
|
||||||
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME).setLevel(java.util.logging.Level.ALL);
|
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME).setLevel(java.util.logging.Level.ALL);
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
clientConfig.register(new LoggingFilter(java.util.logging.Logger.getLogger(LoggingFilter.class.getName()), true));
|
|
||||||
{{/supportJava6}}
|
|
||||||
} else {
|
} else {
|
||||||
// suppress warnings for payloads with DELETE calls:
|
// suppress warnings for payloads with DELETE calls:
|
||||||
java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE);
|
java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE);
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -46,7 +41,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -90,11 +84,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -103,7 +92,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
@@ -124,14 +112,7 @@ ext {
|
|||||||
{{#openApiNullable}}
|
{{#openApiNullable}}
|
||||||
jackson_databind_nullable_version = "0.2.1"
|
jackson_databind_nullable_version = "0.2.1"
|
||||||
{{/openApiNullable}}
|
{{/openApiNullable}}
|
||||||
{{#supportJava6}}
|
|
||||||
jersey_version = "2.6"
|
|
||||||
commons_io_version=2.5
|
|
||||||
commons_lang3_version=3.6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
jersey_version = "2.27"
|
jersey_version = "2.27"
|
||||||
{{/supportJava6}}
|
|
||||||
junit_version = "4.13.1"
|
junit_version = "4.13.1"
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
threetenbp_version = "2.9.10"
|
threetenbp_version = "2.9.10"
|
||||||
@@ -170,10 +151,6 @@ dependencies {
|
|||||||
{{#hasHttpSignatureMethods}}
|
{{#hasHttpSignatureMethods}}
|
||||||
implementation "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
|
implementation "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
|
||||||
{{/hasHttpSignatureMethods}}
|
{{/hasHttpSignatureMethods}}
|
||||||
{{#supportJava6}}
|
|
||||||
implementation "commons-io:commons-io:$commons_io_version"
|
|
||||||
implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
implementation "com.github.joschi.jackson:jackson-datatype-threetenbp:$threetenbp_version"
|
implementation "com.github.joschi.jackson:jackson-datatype-threetenbp:$threetenbp_version"
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ lazy val root = (project in file(".")).
|
|||||||
resolvers += Resolver.mavenLocal,
|
resolvers += Resolver.mavenLocal,
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"io.swagger" % "swagger-annotations" % "1.5.22",
|
"io.swagger" % "swagger-annotations" % "1.5.22",
|
||||||
"org.glassfish.jersey.core" % "jersey-client" % {{#supportJava6}}"2.6"{{/supportJava6}}{{^supportJava6}}"2.27"{{/supportJava6}},{{^supportJava6}}
|
"org.glassfish.jersey.core" % "jersey-client" % "2.27",
|
||||||
"org.glassfish.jersey.inject" % "jersey-hk2" % "2.27",{{/supportJava6}}
|
"org.glassfish.jersey.inject" % "jersey-hk2" % "2.27",
|
||||||
"org.glassfish.jersey.media" % "jersey-media-multipart" % {{#supportJava6}}"2.6"{{/supportJava6}}{{^supportJava6}}"2.27"{{/supportJava6}},
|
"org.glassfish.jersey.media" % "jersey-media-multipart" % "2.27",
|
||||||
"org.glassfish.jersey.media" % "jersey-media-json-jackson" % {{#supportJava6}}"2.6"{{/supportJava6}}{{^supportJava6}}"2.27"{{/supportJava6}},
|
"org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.27",
|
||||||
"org.glassfish.jersey.connectors" % "jersey-apache-connector" % {{#supportJava6}}"2.6"{{/supportJava6}}{{^supportJava6}}"2.27"{{/supportJava6}},
|
"org.glassfish.jersey.connectors" % "jersey-apache-connector" % "2.27",
|
||||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.10.4" % "compile",
|
"com.fasterxml.jackson.core" % "jackson-core" % "2.10.4" % "compile",
|
||||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.10.4" % "compile",
|
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.10.4" % "compile",
|
||||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.10.4" % "compile",
|
"com.fasterxml.jackson.core" % "jackson-databind" % "2.10.4" % "compile",
|
||||||
@@ -36,10 +36,6 @@ lazy val root = (project in file(".")).
|
|||||||
{{^java8}}
|
{{^java8}}
|
||||||
"com.brsanthu" % "migbase64" % "2.2",
|
"com.brsanthu" % "migbase64" % "2.2",
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#supportJava6}}
|
|
||||||
"org.apache.commons" % "commons-lang3" % "3.6",
|
|
||||||
"commons-io" % "commons-io" % "2.5",
|
|
||||||
{{/supportJava6}}
|
|
||||||
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
|
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
|
||||||
"junit" % "junit" % "4.13.1" % "test",
|
"junit" % "junit" % "4.13.1" % "test",
|
||||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||||
|
|||||||
@@ -16,15 +16,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
{{/additionalPropertiesType}}
|
{{/additionalPropertiesType}}
|
||||||
{{/model}}
|
{{/model}}
|
||||||
{{/models}}
|
{{/models}}
|
||||||
{{^supportJava6}}
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{#imports}}
|
{{#imports}}
|
||||||
import {{import}};
|
import {{import}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
|||||||
@@ -251,7 +251,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
|
|||||||
|
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
{{>libraries/jersey2/additional_properties}}
|
{{>libraries/jersey2/additional_properties}}
|
||||||
{{^supportJava6}}
|
|
||||||
/**
|
/**
|
||||||
* Return true if this {{name}} object is equal to o.
|
* Return true if this {{name}} object is equal to o.
|
||||||
*/
|
*/
|
||||||
@@ -286,30 +285,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
|
|||||||
{{/useReflectionEqualsHashCode}}
|
{{/useReflectionEqualsHashCode}}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}{{#hasVars}}
|
|
||||||
{{classname}} {{classVarName}} = ({{classname}}) o;
|
|
||||||
return {{#vars}}ObjectUtils.equals(this.{{name}}, {{classVarName}}.{{name}}){{^-last}} &&
|
|
||||||
{{/-last}}{{/vars}}{{#parent}} &&
|
|
||||||
super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}}
|
|
||||||
return true;{{/hasVars}}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return ObjectUtils.hashCodeMulti({{#vars}}{{name}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}});
|
|
||||||
}
|
|
||||||
|
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -145,11 +145,6 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@@ -158,7 +153,6 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
<fork>true</fork>
|
<fork>true</fork>
|
||||||
<meminitial>128m</meminitial>
|
<meminitial>128m</meminitial>
|
||||||
<maxmem>512m</maxmem>
|
<maxmem>512m</maxmem>
|
||||||
@@ -182,17 +176,12 @@
|
|||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{^java8}}
|
{{^java8}}
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
<tags>
|
<tags>
|
||||||
<tag>
|
<tag>
|
||||||
<name>http.response.details</name>
|
<name>http.response.details</name>
|
||||||
@@ -262,13 +251,11 @@
|
|||||||
<artifactId>jersey-client</artifactId>
|
<artifactId>jersey-client</artifactId>
|
||||||
<version>${jersey-version}</version>
|
<version>${jersey-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
{{^supportJava6}}
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.glassfish.jersey.inject</groupId>
|
<groupId>org.glassfish.jersey.inject</groupId>
|
||||||
<artifactId>jersey-hk2</artifactId>
|
<artifactId>jersey-hk2</artifactId>
|
||||||
<version>${jersey-version}</version>
|
<version>${jersey-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/supportJava6}}
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.glassfish.jersey.media</groupId>
|
<groupId>org.glassfish.jersey.media</groupId>
|
||||||
<artifactId>jersey-media-multipart</artifactId>
|
<artifactId>jersey-media-multipart</artifactId>
|
||||||
@@ -340,18 +327,6 @@
|
|||||||
<version>2.2</version>
|
<version>2.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#supportJava6}}
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.commons</groupId>
|
|
||||||
<artifactId>commons-lang3</artifactId>
|
|
||||||
<version>${commons-lang3-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-io</groupId>
|
|
||||||
<artifactId>commons-io</artifactId>
|
|
||||||
<version>${commons-io-version}</version>
|
|
||||||
</dependency>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{#hasHttpSignatureMethods}}
|
{{#hasHttpSignatureMethods}}
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.tomitribe</groupId>
|
<groupId>org.tomitribe</groupId>
|
||||||
@@ -397,14 +372,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<swagger-annotations-version>1.6.1</swagger-annotations-version>
|
<swagger-annotations-version>1.6.1</swagger-annotations-version>
|
||||||
{{^supportJava6}}
|
|
||||||
<jersey-version>2.30.1</jersey-version>
|
<jersey-version>2.30.1</jersey-version>
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
<jersey-version>2.6</jersey-version>
|
|
||||||
<commons-io-version>2.5</commons-io-version>
|
|
||||||
<commons-lang3-version>3.6</commons-lang3-version>
|
|
||||||
{{/supportJava6}}
|
|
||||||
<jackson-version>2.10.4</jackson-version>
|
<jackson-version>2.10.4</jackson-version>
|
||||||
<jackson-databind-version>2.10.4</jackson-databind-version>
|
<jackson-databind-version>2.10.4</jackson-databind-version>
|
||||||
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Building the API client library requires:
|
Building the API client library requires:
|
||||||
1. Java {{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}+
|
1. Java {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}+
|
||||||
2. Maven/Gradle
|
2. Maven/Gradle
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -40,11 +40,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -53,7 +48,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -98,11 +92,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -111,7 +100,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
|
|||||||
@@ -327,7 +327,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>{{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}</java.version>
|
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
<gson-fire-version>1.8.4</gson-fire-version>
|
<gson-fire-version>1.8.4</gson-fire-version>
|
||||||
|
|||||||
@@ -560,13 +560,7 @@ public class ApiClient{{#java8}} extends JavaTimeFormatter{{/java8}} {
|
|||||||
public File downloadFileFromResponse(Response response) throws ApiException {
|
public File downloadFileFromResponse(Response response) throws ApiException {
|
||||||
try {
|
try {
|
||||||
File file = prepareDownloadFile(response);
|
File file = prepareDownloadFile(response);
|
||||||
{{^supportJava6}}
|
|
||||||
Files.copy(response.readEntity(InputStream.class), file.toPath());
|
Files.copy(response.readEntity(InputStream.class), file.toPath());
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
// Java6 falls back to commons.io for file copying
|
|
||||||
FileUtils.copyToFile(response.readEntity(InputStream.class), file);
|
|
||||||
{{/supportJava6}}
|
|
||||||
return file;
|
return file;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
targetSdkVersion 23
|
targetSdkVersion 23
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -46,7 +41,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -90,11 +84,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -103,7 +92,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
@@ -129,10 +117,6 @@ ext {
|
|||||||
{{^java8}}
|
{{^java8}}
|
||||||
jodatime_version = "2.9.9"
|
jodatime_version = "2.9.9"
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#supportJava6}}
|
|
||||||
commons_io_version=2.5
|
|
||||||
commons_lang3_version=3.5
|
|
||||||
{{/supportJava6}}
|
|
||||||
junit_version = "4.13"
|
junit_version = "4.13"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,10 +141,6 @@ dependencies {
|
|||||||
implementation "joda-time:joda-time:$jodatime_version"
|
implementation "joda-time:joda-time:$jodatime_version"
|
||||||
implementation "com.brsanthu:migbase64:2.2"
|
implementation "com.brsanthu:migbase64:2.2"
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#supportJava6}}
|
|
||||||
implementation "commons-io:commons-io:$commons_io_version"
|
|
||||||
implementation "org.apache.commons:commons-lang3:$commons_lang3_version"
|
|
||||||
{{/supportJava6}}
|
|
||||||
implementation 'javax.annotation:javax.annotation-api:1.3.2'
|
implementation 'javax.annotation:javax.annotation-api:1.3.2'
|
||||||
testImplementation "junit:junit:$junit_version"
|
testImplementation "junit:junit:$junit_version"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,10 +25,6 @@ lazy val root = (project in file(".")).
|
|||||||
"joda-time" % "joda-time" % "2.9.9" % "compile",
|
"joda-time" % "joda-time" % "2.9.9" % "compile",
|
||||||
"com.brsanthu" % "migbase64" % "2.2" % "compile",
|
"com.brsanthu" % "migbase64" % "2.2" % "compile",
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#supportJava6}}
|
|
||||||
"org.apache.commons" % "commons-lang3" % "3.5" % "compile",
|
|
||||||
"commons-io" % "commons-io" % "2.5" % "compile",
|
|
||||||
{{/supportJava6}}
|
|
||||||
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
|
"javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile",
|
||||||
"junit" % "junit" % "4.13" % "test",
|
"junit" % "junit" % "4.13" % "test",
|
||||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||||
|
|||||||
@@ -142,11 +142,6 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.5.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@@ -155,7 +150,6 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -164,17 +158,12 @@
|
|||||||
<version>3.1.1</version>
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{^java8}}
|
{{^java8}}
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
@@ -263,19 +252,6 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
|
|
||||||
{{#supportJava6}}
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.commons</groupId>
|
|
||||||
<artifactId>commons-lang3</artifactId>
|
|
||||||
<version>${commons_lang3_version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-io</groupId>
|
|
||||||
<artifactId>commons-io</artifactId>
|
|
||||||
<version>${commons_io_version}</version>
|
|
||||||
</dependency>
|
|
||||||
{{/supportJava6}}
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jboss.resteasy</groupId>
|
<groupId>org.jboss.resteasy</groupId>
|
||||||
<artifactId>resteasy-jackson2-provider</artifactId>
|
<artifactId>resteasy-jackson2-provider</artifactId>
|
||||||
@@ -317,10 +293,6 @@
|
|||||||
{{^java8}}
|
{{^java8}}
|
||||||
<jodatime-version>2.9.9</jodatime-version>
|
<jodatime-version>2.9.9</jodatime-version>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#supportJava6}}
|
|
||||||
<commons_io_version>2.5</commons_io_version>
|
|
||||||
<commons_lang3_version>3.6</commons_lang3_version>
|
|
||||||
{{/supportJava6}}
|
|
||||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||||
<junit-version>4.13</junit-version>
|
<junit-version>4.13</junit-version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -46,7 +41,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -91,11 +85,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -104,7 +93,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
|
|||||||
@@ -144,11 +144,6 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@@ -157,7 +152,6 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -46,7 +41,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
|
|||||||
@@ -144,11 +144,6 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@@ -157,7 +152,6 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -166,17 +160,12 @@
|
|||||||
<version>3.1.1</version>
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{^java8}}
|
{{^java8}}
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -46,7 +41,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -91,11 +85,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -104,7 +93,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class ApiClient {
|
|||||||
|
|
||||||
public ApiClient() {
|
public ApiClient() {
|
||||||
// Setup authentications (key: authentication name, value: authentication).
|
// Setup authentications (key: authentication name, value: authentication).
|
||||||
authentications = new HashMap<{{#supportJava6}}String, Authentication{{/supportJava6}}>();{{#authMethods}}{{#isBasic}}{{#isBasicBasic}}
|
authentications = new HashMap<>();{{#authMethods}}{{#isBasic}}{{#isBasicBasic}}
|
||||||
// authentications.put("{{name}}", new HttpBasicAuth());{{/isBasicBasic}}{{^isBasicBasic}}
|
// authentications.put("{{name}}", new HttpBasicAuth());{{/isBasicBasic}}{{^isBasicBasic}}
|
||||||
// authentications.put("{{name}}", new HttpBearerAuth("{{scheme}}"));{{/isBasicBasic}}{{/isBasic}}{{#isApiKey}}
|
// authentications.put("{{name}}", new HttpBearerAuth("{{scheme}}"));{{/isBasicBasic}}{{/isBasic}}{{#isApiKey}}
|
||||||
authentications.put("{{name}}", new ApiKeyAuth({{#isKeyInHeader}}"header"{{/isKeyInHeader}}{{#isKeyInQuery}}"query"{{/isKeyInQuery}}{{#isKeyInCookie}}"cookie"{{/isKeyInCookie}}, "{{keyParamName}}"));{{/isApiKey}}{{#isOAuth}}
|
authentications.put("{{name}}", new ApiKeyAuth({{#isKeyInHeader}}"header"{{/isKeyInHeader}}{{#isKeyInQuery}}"query"{{/isKeyInQuery}}{{#isKeyInCookie}}"cookie"{{/isKeyInCookie}}, "{{keyParamName}}"));{{/isApiKey}}{{#isOAuth}}
|
||||||
@@ -62,9 +62,9 @@ public class ApiClient {
|
|||||||
basePath = basePath + "/";
|
basePath = basePath + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, String> extraHeaders = new HashMap<{{#supportJava6}}String, String{{/supportJava6}}>();
|
Map<String, String> extraHeaders = new HashMap<>();
|
||||||
Map<String, String> extraCookies = new HashMap<{{#supportJava6}}String, String{{/supportJava6}}>();
|
Map<String, String> extraCookies = new HashMap<>();
|
||||||
List<Pair> extraQueryParams = new ArrayList<{{#supportJava6}}Pair{{/supportJava6}}>();
|
List<Pair> extraQueryParams = new ArrayList<>();
|
||||||
|
|
||||||
for (String authName : authentications.keySet()) {
|
for (String authName : authentications.keySet()) {
|
||||||
Authentication auth = authentications.get(authName);
|
Authentication auth = authentications.get(authName);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class ApiClient {
|
|||||||
|
|
||||||
public ApiClient() {
|
public ApiClient() {
|
||||||
// Setup authentications (key: authentication name, value: authentication).
|
// Setup authentications (key: authentication name, value: authentication).
|
||||||
authentications = new HashMap<{{#supportJava6}}String, Authentication{{/supportJava6}}>();{{#authMethods}}{{#isBasic}}
|
authentications = new HashMap<>();{{#authMethods}}{{#isBasic}}
|
||||||
// authentications.put("{{name}}", new HttpBasicAuth());{{/isBasic}}{{#isApiKey}}
|
// authentications.put("{{name}}", new HttpBasicAuth());{{/isBasic}}{{#isApiKey}}
|
||||||
authentications.put("{{name}}", new ApiKeyAuth({{#isKeyInHeader}}"header"{{/isKeyInHeader}}{{#isKeyInQuery}}"query"{{/isKeyInQuery}}{{#isKeyInCookie}}"query"{{/isKeyInCookie}}, "{{keyParamName}}"));{{/isApiKey}}{{#isOAuth}}
|
authentications.put("{{name}}", new ApiKeyAuth({{#isKeyInHeader}}"header"{{/isKeyInHeader}}{{#isKeyInQuery}}"query"{{/isKeyInQuery}}{{#isKeyInCookie}}"query"{{/isKeyInCookie}}, "{{keyParamName}}"));{{/isApiKey}}{{#isOAuth}}
|
||||||
// authentications.put("{{name}}", new OAuth());{{/isOAuth}}{{/authMethods}}
|
// authentications.put("{{name}}", new OAuth());{{/isOAuth}}{{/authMethods}}
|
||||||
@@ -61,9 +61,9 @@ public class ApiClient {
|
|||||||
basePath = basePath + "/";
|
basePath = basePath + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, String> extraHeaders = new HashMap<{{#supportJava6}}String, String{{/supportJava6}}>();
|
Map<String, String> extraHeaders = new HashMap<>();
|
||||||
Map<String, String> extraCookies = new HashMap<{{#supportJava6}}String, String{{/supportJava6}}>();
|
Map<String, String> extraCookies = new HashMap<>();
|
||||||
List<Pair> extraQueryParams = new ArrayList<{{#supportJava6}}Pair{{/supportJava6}}>();
|
List<Pair> extraQueryParams = new ArrayList<>();
|
||||||
|
|
||||||
for (String authName : authentications.keySet()) {
|
for (String authName : authentications.keySet()) {
|
||||||
Authentication auth = authentications.get(authName);
|
Authentication auth = authentications.get(authName);
|
||||||
|
|||||||
@@ -144,11 +144,6 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@@ -157,7 +152,6 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -166,17 +160,12 @@
|
|||||||
<version>3.1.1</version>
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{^java8}}
|
{{^java8}}
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
@@ -414,7 +403,7 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<java.version>{{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}</java.version>
|
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
<gson-fire-version>1.8.3</gson-fire-version>
|
<gson-fire-version>1.8.3</gson-fire-version>
|
||||||
|
|||||||
@@ -154,17 +154,12 @@
|
|||||||
<version>3.1.1</version>
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{^java8}}
|
{{^java8}}
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|||||||
@@ -34,11 +34,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
@@ -47,7 +42,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_7
|
sourceCompatibility JavaVersion.VERSION_1_7
|
||||||
targetCompatibility JavaVersion.VERSION_1_7
|
targetCompatibility JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the aar correctly
|
// Rename the aar correctly
|
||||||
@@ -92,11 +86,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
{{#supportJava6}}
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -105,7 +94,6 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_7
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
install {
|
install {
|
||||||
repositories.mavenInstaller {
|
repositories.mavenInstaller {
|
||||||
|
|||||||
@@ -6,13 +6,8 @@ package {{package}};
|
|||||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||||
{{/useReflectionEqualsHashCode}}
|
{{/useReflectionEqualsHashCode}}
|
||||||
{{^supportJava6}}
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{#imports}}
|
{{#imports}}
|
||||||
import {{import}};
|
import {{import}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
|
|||||||
|
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
|
|
||||||
{{^supportJava6}}
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
{{#useReflectionEqualsHashCode}}
|
{{#useReflectionEqualsHashCode}}
|
||||||
@@ -259,30 +258,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
|
|||||||
{{/useReflectionEqualsHashCode}}
|
{{/useReflectionEqualsHashCode}}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{#supportJava6}}
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}{{#hasVars}}
|
|
||||||
{{classname}} {{classVarName}} = ({{classname}}) o;
|
|
||||||
return {{#vars}}ObjectUtils.equals(this.{{name}}, {{classVarName}}.{{name}}){{^-last}} &&
|
|
||||||
{{/-last}}{{/vars}}{{#parent}} &&
|
|
||||||
super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}}
|
|
||||||
return true;{{/hasVars}}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return ObjectUtils.hashCodeMulti({{#vars}}{{name}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}});
|
|
||||||
}
|
|
||||||
|
|
||||||
{{/supportJava6}}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -159,11 +159,6 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@@ -172,7 +167,6 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -181,17 +175,12 @@
|
|||||||
<version>3.1.1</version>
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
{{#supportJava6}}
|
|
||||||
<source>1.6</source>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{^supportJava6}}
|
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{^java8}}
|
{{^java8}}
|
||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{/supportJava6}}
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
@@ -329,18 +318,6 @@
|
|||||||
<version>2.2</version>
|
<version>2.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#supportJava6}}
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.commons</groupId>
|
|
||||||
<artifactId>commons-lang3</artifactId>
|
|
||||||
<version>${commons_lang3_version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-io</groupId>
|
|
||||||
<artifactId>commons-io</artifactId>
|
|
||||||
<version>${commons_io_version}</version>
|
|
||||||
</dependency>
|
|
||||||
{{/supportJava6}}
|
|
||||||
{{#useBeanValidation}}
|
{{#useBeanValidation}}
|
||||||
<!-- Bean Validation API support -->
|
<!-- Bean Validation API support -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -385,10 +362,6 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
||||||
<jersey-version>1.19.4</jersey-version>
|
<jersey-version>1.19.4</jersey-version>
|
||||||
{{#supportJava6}}
|
|
||||||
<commons_io_version>2.5</commons_io_version>
|
|
||||||
<commons_lang3_version>3.6</commons_lang3_version>
|
|
||||||
{{/supportJava6}}
|
|
||||||
<jackson-version>2.10.3</jackson-version>
|
<jackson-version>2.10.3</jackson-version>
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
<jackson-threetenbp-version>2.9.10</jackson-threetenbp-version>
|
<jackson-threetenbp-version>2.9.10</jackson-threetenbp-version>
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -448,7 +448,6 @@ public class AdditionalPropertiesClass {
|
|||||||
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ public class Animal {
|
|||||||
return Objects.hash(className, color);
|
return Objects.hash(className, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
return Objects.hash(arrayArrayNumber);
|
return Objects.hash(arrayArrayNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ public class ArrayOfNumberOnly {
|
|||||||
return Objects.hash(arrayNumber);
|
return Objects.hash(arrayNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -167,7 +167,6 @@ public class ArrayTest {
|
|||||||
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ public class BigCat extends Cat {
|
|||||||
return Objects.hash(kind, super.hashCode());
|
return Objects.hash(kind, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ public class BigCatAllOf {
|
|||||||
return Objects.hash(kind);
|
return Objects.hash(kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -230,7 +230,6 @@ public class Capitalization {
|
|||||||
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
|
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ public class Cat extends Animal {
|
|||||||
return Objects.hash(declawed, super.hashCode());
|
return Objects.hash(declawed, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ public class CatAllOf {
|
|||||||
return Objects.hash(declawed);
|
return Objects.hash(declawed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -109,7 +109,6 @@ public class Category {
|
|||||||
return Objects.hash(id, name);
|
return Objects.hash(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ public class ClassModel {
|
|||||||
return Objects.hash(propertyClass);
|
return Objects.hash(propertyClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ public class Client {
|
|||||||
return Objects.hash(client);
|
return Objects.hash(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ public class Dog extends Animal {
|
|||||||
return Objects.hash(breed, super.hashCode());
|
return Objects.hash(breed, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ public class DogAllOf {
|
|||||||
return Objects.hash(breed);
|
return Objects.hash(breed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -190,7 +190,6 @@ public class EnumArrays {
|
|||||||
return Objects.hash(justSymbol, arrayEnum);
|
return Objects.hash(justSymbol, arrayEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -344,7 +344,6 @@ public class EnumTest {
|
|||||||
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -120,7 +120,6 @@ public class FileSchemaTestClass {
|
|||||||
return Objects.hash(file, files);
|
return Objects.hash(file, files);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -481,7 +481,6 @@ public class FormatTest {
|
|||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ public class HasOnlyReadOnly {
|
|||||||
return Objects.hash(bar, foo);
|
return Objects.hash(bar, foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -240,7 +240,6 @@ public class MapTest {
|
|||||||
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -154,7 +154,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
return Objects.hash(uuid, dateTime, map);
|
return Objects.hash(uuid, dateTime, map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ public class Model200Response {
|
|||||||
return Objects.hash(name, propertyClass);
|
return Objects.hash(name, propertyClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ public class ModelApiResponse {
|
|||||||
return Objects.hash(code, type, message);
|
return Objects.hash(code, type, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ public class ModelReturn {
|
|||||||
return Objects.hash(_return);
|
return Objects.hash(_return);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -152,7 +152,6 @@ public class Name {
|
|||||||
return Objects.hash(name, snakeCase, property, _123number);
|
return Objects.hash(name, snakeCase, property, _123number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ public class NumberOnly {
|
|||||||
return Objects.hash(justNumber);
|
return Objects.hash(justNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -268,7 +268,6 @@ public class Order {
|
|||||||
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -141,7 +141,6 @@ public class OuterComposite {
|
|||||||
return Objects.hash(myNumber, myString, myBoolean);
|
return Objects.hash(myNumber, myString, myBoolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -284,7 +284,6 @@ public class Pet {
|
|||||||
return Objects.hash(id, category, name, photoUrls, tags, status);
|
return Objects.hash(id, category, name, photoUrls, tags, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ public class ReadOnlyFirst {
|
|||||||
return Objects.hash(bar, baz);
|
return Objects.hash(bar, baz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ public class SpecialModelName {
|
|||||||
return Objects.hash($specialPropertyName);
|
return Objects.hash($specialPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ public class Tag {
|
|||||||
return Objects.hash(id, name);
|
return Objects.hash(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -203,7 +203,6 @@ public class TypeHolderDefault {
|
|||||||
return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
|
return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -232,7 +232,6 @@ public class TypeHolderExample {
|
|||||||
return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
|
return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -290,7 +290,6 @@ public class User {
|
|||||||
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -995,7 +995,6 @@ public class XmlItem {
|
|||||||
return Objects.hash(attributeString, attributeNumber, attributeInteger, attributeBoolean, wrappedArray, nameString, nameNumber, nameInteger, nameBoolean, nameArray, nameWrappedArray, prefixString, prefixNumber, prefixInteger, prefixBoolean, prefixArray, prefixWrappedArray, namespaceString, namespaceNumber, namespaceInteger, namespaceBoolean, namespaceArray, namespaceWrappedArray, prefixNsString, prefixNsNumber, prefixNsInteger, prefixNsBoolean, prefixNsArray, prefixNsWrappedArray);
|
return Objects.hash(attributeString, attributeNumber, attributeInteger, attributeBoolean, wrappedArray, nameString, nameNumber, nameInteger, nameBoolean, nameArray, nameWrappedArray, prefixString, prefixNumber, prefixInteger, prefixBoolean, prefixArray, prefixWrappedArray, namespaceString, namespaceNumber, namespaceInteger, namespaceBoolean, namespaceArray, namespaceWrappedArray, prefixNsString, prefixNsNumber, prefixNsInteger, prefixNsBoolean, prefixNsArray, prefixNsWrappedArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -447,7 +447,6 @@ public class AdditionalPropertiesClass {
|
|||||||
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
|||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -120,7 +120,6 @@ public class Animal {
|
|||||||
return Objects.hash(className, color);
|
return Objects.hash(className, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
return Objects.hash(arrayArrayNumber);
|
return Objects.hash(arrayArrayNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ public class ArrayOfNumberOnly {
|
|||||||
return Objects.hash(arrayNumber);
|
return Objects.hash(arrayNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -166,7 +166,6 @@ public class ArrayTest {
|
|||||||
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -125,7 +125,6 @@ public class BigCat extends Cat {
|
|||||||
return Objects.hash(kind, super.hashCode());
|
return Objects.hash(kind, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -118,7 +118,6 @@ public class BigCatAllOf {
|
|||||||
return Objects.hash(kind);
|
return Objects.hash(kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -229,7 +229,6 @@ public class Capitalization {
|
|||||||
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
|
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ public class Cat extends Animal {
|
|||||||
return Objects.hash(declawed, super.hashCode());
|
return Objects.hash(declawed, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public class CatAllOf {
|
|||||||
return Objects.hash(declawed);
|
return Objects.hash(declawed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ public class Category {
|
|||||||
return Objects.hash(id, name);
|
return Objects.hash(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ public class ClassModel {
|
|||||||
return Objects.hash(propertyClass);
|
return Objects.hash(propertyClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public class Client {
|
|||||||
return Objects.hash(client);
|
return Objects.hash(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ public class Dog extends Animal {
|
|||||||
return Objects.hash(breed, super.hashCode());
|
return Objects.hash(breed, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public class DogAllOf {
|
|||||||
return Objects.hash(breed);
|
return Objects.hash(breed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -189,7 +189,6 @@ public class EnumArrays {
|
|||||||
return Objects.hash(justSymbol, arrayEnum);
|
return Objects.hash(justSymbol, arrayEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -343,7 +343,6 @@ public class EnumTest {
|
|||||||
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user