Browse Source

JAVA: Removing @Override for 1.5 compatibility

pull/567/head
Lara Scheidegger 15 years ago
committed by Mihaela Rosca
parent
commit
1d01608367
2 changed files with 0 additions and 4 deletions
  1. +0
    -3
      java/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java
  2. +0
    -1
      java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java

+ 0
- 3
java/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java View File

@ -192,7 +192,6 @@ final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> {
this.maxTries = maxTries;
}
@Override
public boolean hasNext() {
if (state == State.NOT_READY) {
lastMatch = find(searchIndex);
@ -206,7 +205,6 @@ 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()) {
@ -332,7 +330,6 @@ final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> {
/**
* Always throws {@link UnsupportedOperationException} as removal is not supported.
*/
@Override
public void remove() {
throw new UnsupportedOperationException();
}


+ 0
- 1
java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java View File

@ -1975,7 +1975,6 @@ public class PhoneNumberUtil {
final long maxTries) {
return new Iterable<PhoneNumberMatch>() {
@Override
public Iterator<PhoneNumberMatch> iterator() {
return new PhoneNumberMatcher(
PhoneNumberUtil.this, text, defaultCountry, leniency, maxTries);


Loading…
Cancel
Save