Aujourd'hui :
Demain :Code:
1
2
3
4
5
6
7
8
9 public <E> Set<E> emptySet() { … } void timeWaitsFor(Set<Man> people) { … } // * Won't compile! timeWaitsFor(Collections.emptySet()); // OK timeWaitsFor(Collections.<Man>emptySet());
Code:
1
2
3
4
5
6 public <E> Set<E> emptySet() { … } void timeWaitsFor(Set<Man> people) { … } // OK timeWaitsFor(Collections.emptySet());