Skip to content

Commit

Permalink
Fix issue: Microprofile dateLibrary java8 not working (#6062)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravisankar-Challa authored Jun 17, 2020
1 parent 42784ee commit b729e1d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public void addOperationToGroup(String tag, String resourcePath, Operation opera
public void processOpts() {
if ((WEBCLIENT.equals(getLibrary()) && "threetenbp".equals(dateLibrary)) || NATIVE.equals(getLibrary())) {
dateLibrary = "java8";
} else if (MICROPROFILE.equals(getLibrary())) {
} else if (MICROPROFILE.equals(getLibrary()) && "threetenbp".equals(dateLibrary)) {
dateLibrary = "legacy";
}

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

0 comments on commit b729e1d

Please sign in to comment.