J2K: correct handling of properties with "is" notation

This commit is contained in:
Valentin Kipyatkov
2015-09-23 18:13:26 +03:00
parent c8b6db4e57
commit 22797114c7
5 changed files with 170 additions and 35 deletions
@@ -0,0 +1,39 @@
interface I {
boolean isSomething1();
Boolean isSomething2();
int isSomething3();
boolean isSomething4();
void setSomething4(boolean value);
boolean isSomething5();
void setSomething5(boolean value);
boolean getSomething6();
void setSomething6(boolean value);
}
abstract class C implements I {
@Override
public boolean isSomething1() {
return true;
}
public void setSomething1(boolean b) {
}
@Override
public boolean isSomething4() {
return false;
}
@Override
public void setSomething5(boolean value) {
}
@Override
public void setSomething6(boolean value) {
}
}