small correction: moved @SuppressWarnings from class to the method.