mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
moving tests
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
package p1;
|
||||
|
||||
public class ParentWithProtected {
|
||||
protected int myOwn = 0;
|
||||
|
||||
protected void increaseMe(int i) {
|
||||
myOwn += i;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package p2;
|
||||
|
||||
import p1.ParentWithProtected;
|
||||
|
||||
public class Usage {
|
||||
public void test() {
|
||||
ParentWithProtected sws = new ParentWithProtected() {
|
||||
public void creaseMe(int i) {
|
||||
increaseMe(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package p1;
|
||||
|
||||
public class ParentWithProtected {
|
||||
protected int myOwn = 0;
|
||||
|
||||
protected void increaseMe(int i) {
|
||||
myOwn += i;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package p1;
|
||||
|
||||
public class SubjectWithSuper extends ParentWithProtected {
|
||||
public void creaseMe(int i) {
|
||||
increaseMe(i);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package p2;
|
||||
|
||||
import p1.SubjectWithSuper;
|
||||
|
||||
public class Usage {
|
||||
public void test() {
|
||||
SubjectWithSuper sws = new SubjectWithSuper();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user