Skip to content

Commit 8e90efe

Browse files
committed
testclasses
1 parent 92d3083 commit 8e90efe

File tree

8 files changed

+85
-0
lines changed

8 files changed

+85
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public abstract class AbstractClass {
4+
5+
public static AbstractClass instance;
6+
7+
public abstract AbstractClass delegate();
8+
9+
public Object foo() {
10+
return delegate().foo();
11+
}
12+
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public class PublicClass {
4+
5+
public void escape(SimpleClass sc) {
6+
7+
}
8+
9+
public void escapeToStatic(SimpleClass sc) {
10+
StaticClass.s = sc;
11+
}
12+
13+
public SimpleClass getSimpleClass() {
14+
return new SimpleClass();
15+
}
16+
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public class RunnableClass implements Runnable {
4+
public SimpleClass f;
5+
6+
@Override
7+
public void run() {
8+
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public class SimpleClass {
4+
public SimpleClass field;
5+
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public class StaticClass {
4+
public static SimpleClass s;
5+
6+
public static void foo(Object o) {
7+
8+
}
9+
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public class SubAbstractClass extends AbstractClass {
4+
public static AbstractClass instance;
5+
6+
@Override
7+
public AbstractClass delegate() {
8+
return instance;
9+
}
10+
11+
@Override
12+
public Object foo() {
13+
return new Object();
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public final class SubClass extends SuperClass {
4+
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package de.htwg_konstanz.jai.testClasses;
2+
3+
public class SuperClass {
4+
5+
public static void test() {
6+
7+
}
8+
9+
}

0 commit comments

Comments
 (0)