Merge pull request #31 from ceraslabs/master

Fixed compilation error
This commit is contained in:
Tony Tam 2013-02-21 11:03:57 -08:00
commit 10c5a8346f
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public class {{classname}} {
{{#operation}} {{#operation}}
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException { public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException {
// create path and map variables // create path and map variables
String path = "{{path}}".replaceAll("\\{format\\}","json"){{#pathParams}}.replaceAll("\\{" + "{{paramName}}" + "\\}", apiInvoker.escapeString({{{paramName}}})){{/pathParams}}; String path = "{{path}}".replaceAll("\\{format\\}","json"){{#pathParams}}.replaceAll("\\{" + "{{paramName}}" + "\\}", apiInvoker.escapeString({{{paramName}}}.toString())){{/pathParams}};
// query params // query params
Map<String, String> queryParams = new HashMap<String, String>(); Map<String, String> queryParams = new HashMap<String, String>();

View File

@ -77,7 +77,7 @@ class BasicJavaGenerator extends BasicGenerator {
"Date" -> "java.util.Date", "Date" -> "java.util.Date",
"Array" -> "java.util.*", "Array" -> "java.util.*",
"ArrayList" -> "java.util.*", "ArrayList" -> "java.util.*",
"List" -> "java.util.List") "List" -> "java.util.*")
// package for models // package for models
override def modelPackage = Some("com.wordnik.client.model") override def modelPackage = Some("com.wordnik.client.model")