In your code
final List<MyClass> myClassList
= Collections.checkedList(MyClass.class, crit.list());
you just need to reverse the order of the arguments on checkedList().
Btw , .
, checkedList() - -!
: checkedList() , - , , .
checkedList() , , . , . , ( ).
Jon Skeet (@SuppressWarnings("unchecked")) .