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;
<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>
}

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;
public RequestValidator(final SchemaValidator schemaValidator) {
this.schemaValidator = requireNonNull(schemaValidator, "A schema validator is required");
this.parameterValidators = new ParameterValidators(schemaValidator);
