package com.atlassian.bitbucket.validation;

import com.atlassian.bitbucket.validation.annotation.Int;

import javax.validation.ConstraintValidator;

/**
 * Validator for the {@link Int} annotation.
 */
public class IntValidator extends IntegerValidator implements ConstraintValidator<Int, Object> {

    @Override
    public void initialize(Int constraintAnnotation) {
        allowNegative = true;
    }

}
