3
When I create a class in eclipse with a type attribute
public class MinhaClasse{
private String variavel;
}
The eclipse underlines the word "variable" in yellow and if I right-click on it, it allows getters and setters to be generated for that variable.
The problem is that it also replaces references in other methods of type code
variavel = x;
for
setVariavel(x);
I know it doesn’t happen when you use it shift+alt+s and asks to create getters and setters for attributes, but it is much less convenient
It is possible to configure Eclipse not to do this setters?
ps. edited to make the problem clearer