Using eclipse 4.2 with Java 7 and trying to implement the following method of the List interface i got a warning.
public <T> T[] toArray(T[] a) {
return a;
}
The warning says :
The type parameter T is hiding the type T
Why ? How can i get rid of it ?