forked from loafle/openapi-generator-original
parent
6a7b9240a2
commit
52ffc7869e
@ -36,7 +36,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen {
|
|||||||
|
|
||||||
cliOptions.add(CliOption.newBoolean(USE_RX_JAVA, "Whether to use the RxJava adapter with the retrofit2 library."));
|
cliOptions.add(CliOption.newBoolean(USE_RX_JAVA, "Whether to use the RxJava adapter with the retrofit2 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(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
|
||||||
cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1 library. (Default: false)"));
|
cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1 library."));
|
||||||
|
|
||||||
supportedLibraries.put("jersey1", "HTTP client: Jersey client 1.19.1. JSON processing: Jackson 2.7.0. Enable Java6 support using '-DsupportJava6=true'.");
|
supportedLibraries.put("jersey1", "HTTP client: Jersey client 1.19.1. JSON processing: Jackson 2.7.0. Enable Java6 support using '-DsupportJava6=true'.");
|
||||||
supportedLibraries.put("feign", "HTTP client: Netflix Feign 8.16.0. JSON processing: Jackson 2.7.0");
|
supportedLibraries.put("feign", "HTTP client: Netflix Feign 8.16.0. JSON processing: Jackson 2.7.0");
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
package {{package}};
|
package {{package}};
|
||||||
|
|
||||||
|
{{^supportJava6}}
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
{{/supportJava6}}
|
||||||
{{#imports}}
|
{{#imports}}
|
||||||
import {{import}};
|
import {{import}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user