| 1 |
import org.checkerframework.checker.initialization.qual.UnderInitialization; |
| 2 |
import org.checkerframework.checker.nullness.qual.Nullable; |
| 3 |
|
| 4 |
class GenericTest12b { |
| 5 |
class Cell<T1 extends @Nullable Object> {} |
| 6 |
|
| 7 |
class Node<CONTENT extends @Nullable Object> { |
| 8 |
public Node(Cell<CONTENT> userObject) {} |
| 9 |
|
| 10 |
void nodecall(@UnderInitialization Node<CONTENT> this, Cell<CONTENT> userObject) {} |
| 11 |
} |
| 12 |
|
| 13 |
class RootNode extends Node<Void> { |
| 14 |
public RootNode() { |
| 15 |
super(new Cell<Void>()); |
| 16 |
call(new Cell<Void>()); |
| 17 |
nodecall(new Cell<Void>()); |
| 18 |
} |
| 19 |
|
| 20 |
void call(@UnderInitialization RootNode this, Cell<Void> userObject) {} |
| 21 |
} |
| 22 |
} |