Skip to content

Commit

Permalink
added list as reserved word for java generator
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMario committed Nov 14, 2020
1 parent 1a22275 commit 52e95f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public AbstractJavaCodegen() {
"this", "break", "double", "implements", "protected", "throw", "byte", "else",
"import", "public", "throws", "case", "enum", "instanceof", "return", "transient",
"catch", "extends", "int", "short", "try", "char", "final", "interface", "static",
"void", "class", "finally", "long", "strictfp", "volatile", "const", "float",
"void", "class", "finally", "long", "strictfp", "volatile", "const", "float", "list",
"native", "super", "while", "null")
);

Expand Down

1 comment on commit 52e95f3

@radarsh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was list added here? It's not an official Java keyword. This breaks usages where we have parameters named list.

Please sign in to comment.