Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New method in KiwiPreconditions: checkArgumentIsBlank #746

Closed
sleberknight opened this issue Jul 10, 2022 · 0 comments · Fixed by #747
Closed

New method in KiwiPreconditions: checkArgumentIsBlank #746

sleberknight opened this issue Jul 10, 2022 · 0 comments · Fixed by #747
Assignees
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Milestone

Comments

@sleberknight
Copy link
Member

Sometimes, we want to validate that a String argument is blank, e.g. when creating a new entity that has a String identifier:

KiwiPreconditions.checkArgumentIsBlank(entity.getDocumentId());

This method throws IllegalArgumentException when its argument is not blank, defined as a null, empty, or whitespace-only String.

@sleberknight sleberknight added the new feature A new feature such as a new class, method, package, group of classes, etc. label Jul 10, 2022
@sleberknight sleberknight added this to the 2.2.0 milestone Jul 10, 2022
@sleberknight sleberknight self-assigned this Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant