Warning for having same name for class and local variable

I think it would be nice it IDEA could warn that the user is using the same name for both class and local variable.

public class ABC {
private String name;

public void doSomething() {
String name = "def";
....
}
}

0

请先登录再写评论。