I saw very few problems with getters and setters in the wild, and only one of them could be detected through unit test, and only if all getters and setters were tested together, rather than using individual testing methods.
/ /. .
public void setA(Object a) {
this.a = a;
}
public Object getA() {
return a;
}
public void setB(Object a) {
this.a = a;
}
public Object getB() {
return a;
}
, / , .
IDE , , IDE. ( vi .) - , .
, ( ), , , .
, , , , , "" , , - , , - , , .