Skip to content

Commit b729e1d

Browse files
Fix issue: Microprofile dateLibrary java8 not working (#6062)
1 parent 42784ee commit b729e1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public void addOperationToGroup(String tag, String resourcePath, Operation opera
209209
public void processOpts() {
210210
if ((WEBCLIENT.equals(getLibrary()) && "threetenbp".equals(dateLibrary)) || NATIVE.equals(getLibrary())) {
211211
dateLibrary = "java8";
212-
} else if (MICROPROFILE.equals(getLibrary())) {
212+
} else if (MICROPROFILE.equals(getLibrary()) && "threetenbp".equals(dateLibrary)) {
213213
dateLibrary = "legacy";
214214
}
215215

@@ -451,7 +451,6 @@ public void processOpts() {
451451
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
452452
supportingFiles.add(new SupportingFile("api_exception.mustache", apiExceptionFolder, "ApiException.java"));
453453
supportingFiles.add(new SupportingFile("api_exception_mapper.mustache", apiExceptionFolder, "ApiExceptionMapper.java"));
454-
importMapping.put("LocalDate", "org.joda.time.LocalDate");
455454
serializationLibrary = "none";
456455
} else {
457456
LOGGER.error("Unknown library option (-l/--library): " + getLibrary());

0 commit comments

Comments
 (0)