[Java/Jackson] use a jdk6 compatible DateFormat for java.util.Date (#3768)

* [feign] use a jdk6 compatible serializer for java.util.Date

See #3727

Fix #3753

* [jersey] use a jdk6 compatible DateFormat for java.util.Date
This commit is contained in:
Christophe Bornet
2016-10-10 18:42:52 +02:00
committed by wing328
parent 522e27b752
commit 2680995825
18 changed files with 187 additions and 47 deletions

View File

@@ -142,6 +142,10 @@ public class JavaClientCodegen extends AbstractJavaCodegen {
} else {
LOGGER.error("Unknown library option (-l/--library): " + getLibrary());
}
if (additionalProperties.containsKey("jackson") ) {
supportingFiles.add(new SupportingFile("RFC3339DateFormat.mustache", invokerFolder, "RFC3339DateFormat.java"));
}
}
private boolean usesAnyRetrofitLibrary() {