Cast checking against the erased type
Hi,
Perhaps someone can help with the following pesky problem:
I am receiving the following warning
Type Saftey: The cast from Object to ArrayList<Observer> is actually checking
against the erased type ArrayList.
Code snippit:
private Hashtable<String, ArrayList><Observer>> eventComponents = new Hashtable<String, ArrayList><Observer>>(10);
:
:
ArrayList<Observer> alComponents = eventComponents.get(subject);
:
:
The Line below generate the warning:
Type Saftey: The cast from Object to ArrayList<Observer> is actually checking
against the erased type ArrayList.
alComponents = (ArrayList<Observer>)alComponents.clone();
thanks

