Skip to content

Commit 5972827

Browse files
committed
Fix ApiClient.setDateFormat in Java jersey2 client
1 parent 5e805c2 commit 5972827

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

modules/swagger-codegen/src/main/resources/Java/libraries/jersey2/ApiClient.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public class ApiClient {
216216
/**
217217
* Set the date format used to parse/format date parameters.
218218
*/
219-
public ApiClient getDateFormat(DateFormat dateFormat) {
219+
public ApiClient setDateFormat(DateFormat dateFormat) {
220220
this.dateFormat = dateFormat;
221221
return this;
222222
}

samples/client/petstore/java/default/src/main/java/io/swagger/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import io.swagger.client.auth.ApiKeyAuth;
4040
import io.swagger.client.auth.OAuth;
4141

42-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-09-23T12:52:56.012+08:00")
42+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-09-24T21:52:56.159+08:00")
4343
public class ApiClient {
4444
private Map<String, Client> hostMap = new HashMap<String, Client>();
4545
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
@@ -211,7 +211,7 @@ public DateFormat getDateFormat() {
211211
/**
212212
* Set the date format used to parse/format date parameters.
213213
*/
214-
public ApiClient getDateFormat(DateFormat dateFormat) {
214+
public ApiClient setDateFormat(DateFormat dateFormat) {
215215
this.dateFormat = dateFormat;
216216
return this;
217217
}

samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import io.swagger.client.auth.ApiKeyAuth;
4444
import io.swagger.client.auth.OAuth;
4545

46-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-09-23T12:52:46.364+08:00")
46+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-09-24T21:52:47.417+08:00")
4747
public class ApiClient {
4848
private Map<String, Client> hostMap = new HashMap<String, Client>();
4949
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
@@ -215,7 +215,7 @@ public DateFormat getDateFormat() {
215215
/**
216216
* Set the date format used to parse/format date parameters.
217217
*/
218-
public ApiClient getDateFormat(DateFormat dateFormat) {
218+
public ApiClient setDateFormat(DateFormat dateFormat) {
219219
this.dateFormat = dateFormat;
220220
return this;
221221
}

0 commit comments

Comments
 (0)