blob: bff01e33a9e37e57b5ce36c6a85993fb618de2bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import java.util.*;
class A<T> {
protected T t;
protected List<T> list = new ArrayList<T>();
}
public class B extends A<S<caret>tring> {
void foo() {
if (t == null) return;
if (list == null) return;
System.out.println(t);
for (String s : list) {
//do nothing
}
}
}
|