/** * Checks whether or not the argument configuration is valid. In addition of the check made by the parent class it * ensures that the type is set. * If the configuration is not valid, this method throws a {@link IllegalArgumentException}. */ @Override public void ensureValidity() { super.ensureValidity(); if (type == null) { throw new IllegalArgumentException("Type must not be null"); } }
/** * Checks whether or not the argument configuration is valid. In addition of the check made by the parent class it * ensures that the type is set. * If the configuration is not valid, this method throws a {@link IllegalArgumentException}. */ @Override public void ensureValidity() { super.ensureValidity(); if (type == null) { throw new IllegalArgumentException("Type must not be null"); } }