forked from loafle/openapi-generator-original
Fix broken okhttp-gson merge.
This commit is contained in:
parent
f907af6f31
commit
21b70a2dad
@ -81,16 +81,7 @@ public class ApiClient {
|
|||||||
|
|
||||||
verifyingSsl = true;
|
verifyingSsl = true;
|
||||||
|
|
||||||
json = new JSON(this);
|
json = new JSON();
|
||||||
|
|
||||||
/*
|
|
||||||
* Use RFC3339 format for date and datetime.
|
|
||||||
* See http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14
|
|
||||||
*/
|
|
||||||
this.dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
||||||
// Always use UTC as the default time zone when dealing with date (without time).
|
|
||||||
this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
|
||||||
initDatetimeFormat();
|
|
||||||
|
|
||||||
// Set default User-Agent.
|
// Set default User-Agent.
|
||||||
setUserAgent("{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{{artifactVersion}}}/java{{/httpUserAgent}}");
|
setUserAgent("{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{{artifactVersion}}}/java{{/httpUserAgent}}");
|
||||||
|
@ -76,16 +76,7 @@ public class ApiClient {
|
|||||||
|
|
||||||
verifyingSsl = true;
|
verifyingSsl = true;
|
||||||
|
|
||||||
json = new JSON(this);
|
json = new JSON();
|
||||||
|
|
||||||
/*
|
|
||||||
* Use RFC3339 format for date and datetime.
|
|
||||||
* See http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14
|
|
||||||
*/
|
|
||||||
this.dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
||||||
// Always use UTC as the default time zone when dealing with date (without time).
|
|
||||||
this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
|
||||||
initDatetimeFormat();
|
|
||||||
|
|
||||||
// Set default User-Agent.
|
// Set default User-Agent.
|
||||||
setUserAgent("Swagger-Codegen/1.0.0/java");
|
setUserAgent("Swagger-Codegen/1.0.0/java");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user