Skip to content
Snippets Groups Projects
Commit 63cffd02 authored by Colin Cross's avatar Colin Cross
Browse files

Update messaging for guava 27.1

CharMatcher.ASCII has been replaced with CharMatcher.ascii().

Bug: 130306229
Test: m checkbuild
Change-Id: I21473e2aa5e432b135fac7f1ecf0a85f52f3951e
parent efa64556
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ public final class EmailAddress {
// Host must not have any disallowed characters; allowI18n dictates whether
// host must be ASCII.
if (!EMAIL_ALLOWED_CHARS.matchesAllOf(host)
|| (!allowI18n && !CharMatcher.ASCII.matchesAllOf(host))) {
|| (!allowI18n && !CharMatcher.ascii().matchesAllOf(host))) {
return false;
}
......@@ -182,7 +182,7 @@ public final class EmailAddress {
// User must not have any disallowed characters; allow I18n dictates whether
// user must be ASCII.
if (!EMAIL_ALLOWED_CHARS.matchesAllOf(user)
|| (!allowI18n && !CharMatcher.ASCII.matchesAllOf(user))) {
|| (!allowI18n && !CharMatcher.ascii().matchesAllOf(user))) {
return false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment