You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Don't change field name in parameters list when the parameter name is the same as the field name. eg: name = newName;.
Describe the solution you'd like
when the parameter name is the same as field name, use this to assess field. eg: this.name = name;.
Describe alternatives you've considered
// source code[AllArgsConstructor(MemberType= MemberType.{{memberType}})]internalpartialclassTestClass{privatestringname;privatestring_name;privatestring@string;privateint_age;}// now <auto-generated/>internalpartialclassTestClass{internalTestClass(stringnewName,stringname,stringnewString,intnewAge){name=newName;_name=name;@string=newString;_age=newAge;}}// new <auto-generated/>internalpartialclassTestClass{internalTestClass(stringname1,stringname2,string@string,intage){name=name1;_name=name2;this.@string =@string;this.age =age;}}
The text was updated successfully, but these errors were encountered:
View12138
pushed a commit
to View12138/Lombok.NET
that referenced
this issue
Feb 23, 2024
Is your feature request related to a problem? Please describe.
Don't change field name in parameters list when the parameter name is the same as the field name. eg:
name = newName;
.Describe the solution you'd like
when the parameter name is the same as field name, use
this
to assess field. eg:this.name = name;
.Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: