Removing @SuppressWarnings("deprecation")
Bug fix