Collections.sort with Generics
Hi,
I was trying to call collections.sort for a List<MyClass> and I got a warning in eclipse. My code was something like this.
List<MyClass> list = new ArrayList<MyClass>();
/* some code for poluating the list */
Collections.sort(list);
On the above line I got the following warning in eclipse:
Type safety: Unchecked invocation sort (List<MyClass>) of the generic method sort(List<T>) of Type Collections.
Is there anyway I could add the generic class information for this method invocation.
TIA
Gaurav

