Commits

Anonymous committed 96b3d55

removing white spaces

Comments (0)

Files changed (3)

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

       .add(228)  // Togo
       .add(240)  // Equatorial Guinea
       .add(241)  // Gabon
-      .build();  
+      .build();
 
   // Pattern that makes it easy to distinguish whether a country has a unique international dialing
   // prefix or not. If a country has a unique international prefix (e.g. 011 in USA), it will be
   // We use this pattern to check if the phone number has at least three letters in it - if so, then
   // we treat it as a number where some phone-number digits are represented by letters.
   private static final Pattern VALID_ALPHA_PHONE_PATTERN = Pattern.compile("(?:.*?[A-Za-z]){3}.*");
-  
+
   // Regular expression of viable phone numbers. This is location independent. Checks we have at
   // least three leading digits, and only valid punctuation, alpha characters and
   // digits in the phone number. Does not include extension data.
     if (metadata == null) {
       LOGGER.log(Level.SEVERE, "Unsupported country code provided.");
       return 0;
-    }    
+    }
     return metadata.getCountryCode();
   }
 

java/src/com/google/i18n/phonenumbers/Phonenumber.java

     private java.lang.String rawInput_ = "";
     public boolean hasRawInput() { return hasRawInput; }
     public java.lang.String getRawInput() { return rawInput_; }
-    
+
     private void initFields() {
     }
     public final boolean isInitialized() {
         result.rawInput_ = getDefaultInstance().getRawInput();
         return this;
       }
-      
+
       // @@protoc_insertion_point(builder_scope:i18n.phonenumbers.PhoneNumber)
     }
     

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

     assertEquals("011 54 9 11 2312 1\u2008\u2008\u2008", formatter.inputDigit('1'));
     assertEquals("011 54 9 11 2312 12\u2008\u2008", formatter.inputDigit('2'));
     assertEquals("011 54 9 11 2312 123\u2008", formatter.inputDigit('3'));
-    assertEquals("011 54 9 11 2312 1234", formatter.inputDigit('4'));    
+    assertEquals("011 54 9 11 2312 1234", formatter.inputDigit('4'));
 
     formatter.clear();
     assertEquals("+", formatter.inputDigit('+'));