diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache index cdf398a0d58..4bc1e243843 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache @@ -342,6 +342,8 @@ public class ApiClient { /** * Parse the given string into Date object. + * @param str the string to parse + * @return the Date parsed from the string */ public Date parseDate(String str) { try { @@ -353,6 +355,8 @@ public class ApiClient { /** * Format the given Date object into string. + * @param date the date to format + * @return the formatted date as string */ public String formatDate(Date date) { return dateFormat.format(date); @@ -386,7 +390,7 @@ public class ApiClient { * Formats the specified collection path parameter to a string value. * * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. + * @param values The values of the parameter. * @return String representation of the parameter */ public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection values) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java index c06f80a1381..7db0ef8909b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java @@ -331,6 +331,8 @@ public class ApiClient { /** * Parse the given string into Date object. + * @param str the string to parse + * @return the Date parsed from the string */ public Date parseDate(String str) { try { @@ -342,6 +344,8 @@ public class ApiClient { /** * Format the given Date object into string. + * @param date the date to format + * @return the formatted date as string */ public String formatDate(Date date) { return dateFormat.format(date); @@ -375,7 +379,7 @@ public class ApiClient { * Formats the specified collection path parameter to a string value. * * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. + * @param values The values of the parameter. * @return String representation of the parameter */ public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection values) { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java index e0c50a4e867..928a12b933a 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java @@ -326,6 +326,8 @@ public class ApiClient { /** * Parse the given string into Date object. + * @param str the string to parse + * @return the Date parsed from the string */ public Date parseDate(String str) { try { @@ -337,6 +339,8 @@ public class ApiClient { /** * Format the given Date object into string. + * @param date the date to format + * @return the formatted date as string */ public String formatDate(Date date) { return dateFormat.format(date); @@ -370,7 +374,7 @@ public class ApiClient { * Formats the specified collection path parameter to a string value. * * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. + * @param values The values of the parameter. * @return String representation of the parameter */ public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection values) {