Browse Source

JAVA: Remove unused imports.

pull/567/head
Nikolaos Trogkanis 14 years ago
committed by Mihaela Rosca
parent
commit
7729710f63
7 changed files with 2 additions and 16 deletions
  1. +2
    -2
      java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java
  2. +0
    -1
      java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumberUtil.java
  3. +0
    -2
      java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java
  4. +0
    -2
      java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatcherTest.java
  5. +0
    -2
      java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java
  6. +0
    -4
      java/libphonenumber/test/com/google/i18n/phonenumbers/ShortNumberUtilTest.java
  7. +0
    -3
      java/libphonenumber/test/com/google/i18n/phonenumbers/TestMetadataTestCase.java

+ 2
- 2
java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java View File

@ -650,13 +650,13 @@ public class PhoneNumberUtil {
// We assume that the first-group symbol will never be _before_ the national prefix.
candidateNationalPrefixRule =
candidateNationalPrefixRule.substring(0, candidateNationalPrefixRule.indexOf("$1"));
candidateNationalPrefixRule = util.normalizeDigitsOnly(candidateNationalPrefixRule);
candidateNationalPrefixRule = normalizeDigitsOnly(candidateNationalPrefixRule);
if (candidateNationalPrefixRule.length() == 0) {
// National Prefix not needed for this number.
return true;
}
// Normalize the remainder.
String rawInputCopy = util.normalizeDigitsOnly(number.getRawInput());
String rawInputCopy = normalizeDigitsOnly(number.getRawInput());
StringBuilder rawInput = new StringBuilder(rawInputCopy);
// Check if we found a national prefix and/or carrier code at the start of the raw input,
// and return the result.


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

@ -17,7 +17,6 @@
package com.google.i18n.phonenumbers;
import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
import java.util.regex.Pattern;


+ 0
- 2
java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java View File

@ -16,8 +16,6 @@
package com.google.i18n.phonenumbers;
import junit.framework.TestCase;
/**
* Unit tests for AsYouTypeFormatter.java
*


+ 0
- 2
java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatcherTest.java View File

@ -19,8 +19,6 @@ package com.google.i18n.phonenumbers;
import com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency;
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;


+ 0
- 2
java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java View File

@ -23,8 +23,6 @@ import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.List;


+ 0
- 4
java/libphonenumber/test/com/google/i18n/phonenumbers/ShortNumberUtilTest.java View File

@ -16,10 +16,6 @@
package com.google.i18n.phonenumbers;
import junit.framework.TestCase;
import java.io.InputStream;
/**
* Unit tests for ShortNumberUtil.java
*


+ 0
- 3
java/libphonenumber/test/com/google/i18n/phonenumbers/TestMetadataTestCase.java View File

@ -18,9 +18,6 @@ package com.google.i18n.phonenumbers;
import junit.framework.TestCase;
import java.io.IOException;
import java.io.InputStream;
/**
* Root class for PhoneNumberUtil tests that depend on the test metadata file.
* <p>


Loading…
Cancel
Save