blob: b3764fda80dee14ed752157ab995f2e56524cad3 (
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<Object> {
void foo() {
if (t == null) return;
if (list == null) return;
System.out.println(t);
for (Object s : list) {
//do nothing
}
}
}
|