Deprecated method resulting in warnings when compiled. Add @SuppressWarnings("deprecated") to suppress the warnings.