Fixes issue #7177 (SpringCodeGen dateLibrary "java8-localdatetime" option is ignored). (#7178)

This commit is contained in:
Neeme Praks 2018-01-22 11:31:13 +02:00 committed by William Cheng
parent 5ea3d3bb18
commit fe2a443394

View File

@ -296,10 +296,6 @@ public class SpringCodegen extends AbstractJavaCodegen
if (this.async) {
additionalProperties.put(RESPONSE_WRAPPER, "CompletableFuture");
}
typeMapping.put("date", "LocalDate");
typeMapping.put("DateTime", "OffsetDateTime");
importMapping.put("LocalDate", "java.time.LocalDate");
importMapping.put("OffsetDateTime", "java.time.OffsetDateTime");
} else if (this.async) {
additionalProperties.put(RESPONSE_WRAPPER, "Callable");
}