improvements based on #3568 (#4021)

This commit is contained in:
wing328 2016-10-18 16:32:35 +08:00 committed by GitHub
parent 6a7b9240a2
commit 52ffc7869e
2 changed files with 3 additions and 1 deletions

View File

@ -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(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("feign", "HTTP client: Netflix Feign 8.16.0. JSON processing: Jackson 2.7.0");

View File

@ -2,7 +2,9 @@
package {{package}};
{{^supportJava6}}
import java.util.Objects;
{{/supportJava6}}
{{#imports}}
import {{import}};
{{/imports}}