|
The attached patch makes ReflectionUtils.newInstance use generics appropriately. I've also gone through and updated everywhere that calls ReflectionUtils.newInstance to remove now-redundant casts, or to add further generics where appropriate. The overall result is about 17 fewer @SupressWarnings("unchecked") needed in the source tree.
|