added internal names to reserved words list

This commit is contained in:
Tony Tam 2016-01-05 16:40:17 -08:00
parent e82c12ccf8
commit ed4a729cd2

View File

@ -44,6 +44,11 @@ public class JavaClientCodegen extends DefaultCodegen implements CodegenConfig {
reservedWords = new HashSet<String>(
Arrays.asList(
// used as internal variables, can collide with parameter names
"path", "queryParams", "headerParams", "formParams", "postBody", "accepts", "accept", "contentTypes",
"contentType", "authNames",
// language reserved words
"abstract", "continue", "for", "new", "switch", "assert",
"default", "if", "package", "synchronized", "boolean", "do", "goto", "private",
"this", "break", "double", "implements", "protected", "throw", "byte", "else",