When I create a class in eclipse with an attribute of type
public class MinhaClasse{
private String variavel;
}
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 overrides references in other methods of type code
variavel = x;
by
setVariavel(x);
I know this does not happen when using shift + alt + s and asks to create getters and setters for the attributes, but it is much less convenient
Is it possible to configure Eclipse to not do this override of setters ?
ps. edited to make the problem lighter