Skip to content

Commit 3577960

Browse files
committed
set default date library for java8 option
1 parent 0e6fee6 commit 3577960

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ public void processOpts() {
484484

485485
if (additionalProperties.containsKey(DATE_LIBRARY)) {
486486
setDateLibrary(additionalProperties.get("dateLibrary").toString());
487+
} else if (java8Mode) {
488+
setDateLibrary("java8");
487489
}
488490

489491
if ("threetenbp".equals(dateLibrary)) {

0 commit comments

Comments
 (0)