List<SomeClass<String>> list = new ArrayList<SomeClass<String>>();
List l = Collections.checkedList(list, SomeClass.class);
That is my code.Eclipse tell me there are some errors:
The method
checkedList(List<E>, Class<E>)
in the type Collections is not applicable for the arguments(List<SomeClass<String>>, Class<SomeClass>)
how to use checkedList? how to alter the code?