From fe2a44339403f9857726b6017878932ede6817ee Mon Sep 17 00:00:00 2001 From: Neeme Praks Date: Mon, 22 Jan 2018 11:31:13 +0200 Subject: [PATCH] Fixes issue #7177 (SpringCodeGen dateLibrary "java8-localdatetime" option is ignored). (#7178) --- .../main/java/io/swagger/codegen/languages/SpringCodegen.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SpringCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SpringCodegen.java index a586e4f394eb..8e7dbe13284f 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SpringCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SpringCodegen.java @@ -296,10 +296,6 @@ public void processOpts() { 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"); }