Skip to content

Commit 6bf08f7

Browse files
committed
set default date library for java8
1 parent 6eb46f1 commit 6bf08f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/io/swagger/codegen/v3/generators/java/AbstractJavaCodegen.java

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

450450
if (additionalProperties.containsKey(DATE_LIBRARY)) {
451451
setDateLibrary(additionalProperties.get("dateLibrary").toString());
452+
} else if (java8Mode) {
453+
setDateLibrary("java8");
452454
}
453455

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

0 commit comments

Comments
 (0)