J2K: replace overloads with optional parameters not only for constructors but for methods too

This commit is contained in:
Valentin Kipyatkov
2015-04-08 16:22:15 +03:00
parent ff4ff78307
commit f6e363abb8
23 changed files with 721 additions and 184 deletions
@@ -0,0 +1,15 @@
class A {
private int field = 0;
public int getField() {
return field;
}
public void setField(int field) {
this.field = field;
}
public void setField() {
setField(0);
}
}