blob: c732b18f823becdfa50d77fcf25e5b52a7ba2265 [file] [log] [blame]
class Test {
private int count1;
private int count2;
public void test() {
int oldCount1 = getCount1();
int oldCount2 = getCount2();
count1++;
if (oldCount1 != getCount1() || oldCount2 != getCount2()) {
System.out.println("changed");
}
}
private int getCount1() {
return count1;
}
private int getCount2() {
return count2;
}
}