Add additional reserved words for java and csharp (#16276)

Co-authored-by: Jonathan Wenger <jonathan.wenger@avalara.com>
This commit is contained in:
Jonathan Wenger 2023-08-08 23:30:22 -07:00 committed by GitHub
parent a3d14c87c4
commit d9001b8a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View File

@ -88,6 +88,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<li>List</li>
<li>Object</li>
<li>String</li>
<li>System</li>
<li>System.IO.Stream</li>
<li>bool</li>
<li>bool?</li>

View File

@ -197,7 +197,9 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<li>int</li>
<li>interface</li>
<li>list</li>
<li>localdate</li>
<li>localreturntype</li>
<li>localtime</li>
<li>localvaraccept</li>
<li>localvaraccepts</li>
<li>localvarauthnames</li>
@ -215,6 +217,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<li>new</li>
<li>null</li>
<li>object</li>
<li>offsetdatetime</li>
<li>package</li>
<li>private</li>
<li>protected</li>

View File

@ -146,7 +146,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
"foreach", "goto", "if", "implicit", "in", "int", "interface", "internal", "is", "lock",
"long", "namespace", "new", "null", "object", "operator", "out", "override", "params",
"private", "protected", "public", "readonly", "ref", "return", "sbyte", "sealed",
"short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "this", "throw",
"short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "system", "this", "throw",
"true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using",
"virtual", "void", "volatile", "while")
);

View File

@ -196,7 +196,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
"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",
"native", "super", "while", "null")
"native", "super", "while", "null", "offsetdatetime", "localdate", "localtime")
);
languageSpecificPrimitives = Sets.newHashSet("String",