Only return complete accessor name when accessor has a backing field
This commit is contained in:
@@ -168,7 +168,7 @@ class TypeElementMembers {
|
||||
}
|
||||
|
||||
private String getAccessorName(String methodName) {
|
||||
if (this.isRecord) {
|
||||
if (this.isRecord && this.fields.containsKey(methodName)) {
|
||||
return methodName;
|
||||
}
|
||||
String name;
|
||||
|
||||
Reference in New Issue
Block a user