Removed warnings by removing useless imports.
Removed warnings by removing useless @SuppressWarnings("deprecation") annotations.