forked from loafle/openapi-generator-original
Fix to case of propertyClass which pukes on most checkstyle rules in java
This commit is contained in:
parent
a6fd8442b2
commit
46c3bef40f
@ -351,7 +351,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
|
|||||||
name = sanitizeName(name); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'.
|
name = sanitizeName(name); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'.
|
||||||
|
|
||||||
if ("class".equals(name.toLowerCase())) {
|
if ("class".equals(name.toLowerCase())) {
|
||||||
return "PropertyClass";
|
return "propertyClass";
|
||||||
}
|
}
|
||||||
|
|
||||||
if("_".equals(name)) {
|
if("_".equals(name)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user