-
Notifications
You must be signed in to change notification settings - Fork 3
CallFromNested test
Artyom Lobanov edited this page Jul 11, 2017
·
3 revisions
Check that calls from nested classes are considered.
Member | Move to |
---|---|
ClassB.methodB1() | ClassA or ClassA.Nested |
package callFromNested;
public class ClassA {
class Nested {
private int field;
public Nested() {
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
}
void methodA1() {
field++;
field++;
field++;
field++;
field++;
field++;
field++;
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
ClassB.methodB1();
}
}
}
package callFromNested;
public class ClassB {
static void methodB1() {}
}