Skip to content

Commit

Permalink
Fixed nullability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bbottema committed Dec 19, 2019
1 parent 561445f commit 72fa656
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private EmailAddressValidator() {
* @see EmailAddressCriteria#DEFAULT
*/
@SuppressWarnings("unused")
public static boolean isValid(final String email) {
public static boolean isValid(@Nullable final String email) {
return isValid(email, EmailAddressCriteria.DEFAULT);
}

Expand All @@ -131,7 +131,7 @@ public static boolean isValid(final String email) {
* @see EmailAddressCriteria#RFC_COMPLIANT
*/
@SuppressWarnings("unused")
public static boolean isValidStrict(final String email) {
public static boolean isValidStrict(@Nullable final String email) {
return isValid(email, EmailAddressCriteria.RFC_COMPLIANT);
}

Expand Down

0 comments on commit 72fa656

Please sign in to comment.