mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 02:33:48 +07:00
23 lines
379 B
Java
23 lines
379 B
Java
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;
|
|
}
|
|
|
|
} |