Fixes rawtypes and unchecked SuppressWarnings.