You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
476 B
41 lines
476 B
8 years ago
|
package pkg;
|
||
|
|
||
|
class TestSyntheticAccess {
|
||
|
|
||
|
private static int s;
|
||
|
private int i;
|
||
|
|
||
|
private class Incrementer {
|
||
|
void orI() {
|
||
|
i|=1;
|
||
|
}
|
||
|
|
||
|
void incrementI() {
|
||
|
i++;
|
||
|
}
|
||
|
|
||
|
void decrementI() {
|
||
|
--i;
|
||
|
}
|
||
|
|
||
|
void incrementS() {
|
||
|
++s;
|
||
|
}
|
||
|
|
||
|
void decrementS() {
|
||
|
s--;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private class Assigner {
|
||
|
void assignI(int newValue) {
|
||
|
i = newValue;
|
||
|
}
|
||
|
|
||
|
void assignS(int newValue) {
|
||
|
s = newValue;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|