Commits

Anonymous committed 2739ec3

JAVA: Remove unused imports.

  • Participants
  • Parent commits 7083491
  • Branches default

Comments (0)

Files changed (7)

java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java

         // 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.

java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumberUtil.java

 package com.google.i18n.phonenumbers;
 
 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
-import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
 
 import java.util.regex.Pattern;
 

java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java

 
 package com.google.i18n.phonenumbers;
 
-import junit.framework.TestCase;
-
 /**
  * Unit tests for AsYouTypeFormatter.java
  *

java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatcherTest.java

 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;

java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java

 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;
 

java/libphonenumber/test/com/google/i18n/phonenumbers/ShortNumberUtilTest.java

 
 package com.google.i18n.phonenumbers;
 
-import junit.framework.TestCase;
-
-import java.io.InputStream;
-
 /**
  * Unit tests for ShortNumberUtil.java
  *

java/libphonenumber/test/com/google/i18n/phonenumbers/TestMetadataTestCase.java

 
 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>