<BUG>private final MessageResolver messages;public RequestValidator(final SchemaValidator schemaValidator, final MessageResolver messages) {this.schemaValidator = requireNonNull(schemaValidator, "A schema validator is required");this.parameterValidators = new ParameterValidators(schemaValidator, messages);this.messages = requireNonNull(messages, "A message resolver is required");</BUG><CONTEXT>import static java.util.Objects.requireNonNull;public class RequestValidator {static final Logger logger = LoggerFactory.getLogger(RequestValidator.class);private final SchemaValidator schemaValidator;private final ParameterValidators parameterValidators;<extra_id_0>}</CONTEXT>
public RequestValidator(final SchemaValidator schemaValidator) {this.parameterValidators = new ParameterValidators(schemaValidator);