|
17 | 17 |
|
18 | 18 | package org.openapitools.codegen.languages;
|
19 | 19 |
|
| 20 | +import static com.google.common.base.CaseFormat.LOWER_CAMEL; |
| 21 | +import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE; |
| 22 | +import static java.util.Collections.sort; |
| 23 | + |
20 | 24 | import org.apache.commons.lang3.BooleanUtils;
|
21 | 25 | import org.apache.commons.lang3.StringUtils;
|
22 | 26 | import org.openapitools.codegen.CliOption;
|
|
45 | 49 | import java.util.Map;
|
46 | 50 | import java.util.regex.Pattern;
|
47 | 51 |
|
48 |
| -import static com.google.common.base.CaseFormat.LOWER_CAMEL; |
49 |
| -import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE; |
50 |
| -import static java.util.Collections.sort; |
51 |
| - |
52 | 52 | public class JavaClientCodegen extends AbstractJavaCodegen
|
53 | 53 | implements BeanValidationFeatures, PerformBeanValidationFeatures,
|
54 | 54 | GzipFeatures {
|
@@ -287,6 +287,8 @@ public void processOpts() {
|
287 | 287 | additionalProperties.put("jackson", "true");
|
288 | 288 | supportingFiles.add(new SupportingFile("auth/Authentication.mustache", authFolder, "Authentication.java"));
|
289 | 289 | } else if (WEBCLIENT.equals(getLibrary())) {
|
| 290 | + setJava8Mode(true); |
| 291 | + additionalProperties.put("java8", "true"); |
290 | 292 | additionalProperties.put("jackson", "true");
|
291 | 293 | } else if (VERTX.equals(getLibrary())) {
|
292 | 294 | typeMapping.put("file", "AsyncFile");
|
|
0 commit comments