public static void requireArgMaxLength(@NotNull final String name, @NotNull final String value, final int max)
            throws ConstraintViolationException {
        // CHECKSTYLE:ON
        if (value.length() > max) {
            throw new ConstraintViolationException("Max length of argument '" + name + "' is " + max + ", but was: " + value.length());
        }
    }
public static void requireArgMaxLength ( @ NotNull final String name , @ NotNull final String value , final int max ) throws ConstraintViolationException { if ( value . length ( ) > max ) { throw new ConstraintViolationException ( "Max length of argument '" + name + "' is " + max + ", but was: " + value . length ( ) ) ; } }
CHECKSTYLE:OFF:RedundantThrows