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
1.select "originalField"
2.click “Rename”
3. new name "originalFieldRenamed"
class AnotherClass {
// rename originalFieldRenamed
int originalField = 20;
public void anotherMethod(int originalFieldRenamed) {
int localVar = originalFieldRenamed; // Local variable with the same name as the field
System.out.println(originalField);
}
}
refactoring result:
The text was updated successfully, but these errors were encountered:
[provide a description of the issue]
Environment
Steps To Reproduce
1.select "originalField"
2.click “Rename”
3. new name "originalFieldRenamed"
class AnotherClass {
// rename originalFieldRenamed
int originalField = 20;
public void anotherMethod(int originalFieldRenamed) {
int localVar = originalFieldRenamed; // Local variable with the same name as the field
System.out.println(originalField);
}
}
refactoring result:
The text was updated successfully, but these errors were encountered: