Added @SuppressWarnings("restriction") on patch class