If a class contains a field named other, the generated equals() method will be broken
Environment
- Operating System: Windows 10
- JDK version: 13.0.1
- Visual Studio Code version: 1.43.2
- Java extension version: 0.58.0
Steps To Reproduce
- do
Source Action... -> Generate hashCode() and equals()... in the class below
class Issues {
private String other;
}
Current Result
return Objects.equals(other, other.other);
Expected Result
return Objects.equals(this.other, other.other);