diff options
author | Andy Staudacher <staudacher@google.com> | 2015-02-11 13:54:21 +0100 |
---|---|---|
committer | Andy Staudacher <staudacher@google.com> | 2015-02-11 13:54:21 +0100 |
commit | b0d1cb1662daab3451e5fa59b8f073e9992b628b (patch) | |
tree | 05b9cec10b5088e7590941e06a182a529f976fe4 /libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java | |
parent | cba5c4007938cbcdd46b0640af8a864f6fb89fa5 (diff) | |
download | libphonenumber-b0d1cb1662daab3451e5fa59b8f073e9992b628b.tar.gz |
Update libphonenumber to 7.0.2 (from 7.0.1).
See release_notes.txt for details.
Change-Id: I3788937ba2dab27376fe1b23e64f9dd8a7e81790
Signed-off-by: Andy Staudacher <staudacher@google.com>
Diffstat (limited to 'libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java')
-rw-r--r-- | libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java b/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java index 34e8d163..c74b21ab 100644 --- a/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java +++ b/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java @@ -347,7 +347,6 @@ final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> { */ private PhoneNumberMatch extractInnerMatch(String candidate, int offset) { for (Pattern possibleInnerMatch : INNER_MATCHES) { - int rangeStart = 0; Matcher groupMatcher = possibleInnerMatch.matcher(candidate); boolean isFirstMatch = true; while (groupMatcher.find() && maxTries > 0) { @@ -690,6 +689,7 @@ final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> { return true; } + @Override public boolean hasNext() { if (state == State.NOT_READY) { lastMatch = find(searchIndex); @@ -703,6 +703,7 @@ final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> { return state == State.READY; } + @Override public PhoneNumberMatch next() { // Check the state and find the next match as a side-effect if necessary. if (!hasNext()) { @@ -719,6 +720,7 @@ final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> { /** * Always throws {@link UnsupportedOperationException} as removal is not supported. */ + @Override public void remove() { throw new UnsupportedOperationException(); } |