diff --git a/java/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java b/java/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java index 5121c259f..1905b5e44 100644 --- a/java/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java +++ b/java/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java @@ -192,7 +192,6 @@ final class PhoneNumberMatcher implements Iterator { this.maxTries = maxTries; } - @Override public boolean hasNext() { if (state == State.NOT_READY) { lastMatch = find(searchIndex); @@ -206,7 +205,6 @@ final class PhoneNumberMatcher implements Iterator { return state == State.READY; } - @Override public PhoneNumberMatch next() { // Check the state and find the next match as a side-effect if necessary. if (!hasNext()) { @@ -332,7 +330,6 @@ final class PhoneNumberMatcher implements Iterator { /** * Always throws {@link UnsupportedOperationException} as removal is not supported. */ - @Override public void remove() { throw new UnsupportedOperationException(); } diff --git a/java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java b/java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java index df486bc80..52b826e07 100644 --- a/java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java +++ b/java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java @@ -1975,7 +1975,6 @@ public class PhoneNumberUtil { final long maxTries) { return new Iterable() { - @Override public Iterator iterator() { return new PhoneNumberMatcher( PhoneNumberUtil.this, text, defaultCountry, leniency, maxTries);