From 9d26d810ee0fec94be1e348d07a30ed5f0e50888 Mon Sep 17 00:00:00 2001 From: Shaopeng Jia Date: Fri, 23 Jul 2010 13:26:30 +0000 Subject: [PATCH] Remove trailing white spaces. --- java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java | 2 +- java/src/com/google/i18n/phonenumbers/Phonemetadata.java | 2 +- .../com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java | 4 ++-- .../com/google/i18n/phonenumbers/PhoneNumberUtilTest.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java b/java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java index 1757e1aec..5fd91703c 100644 --- a/java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java +++ b/java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java @@ -204,7 +204,7 @@ public class AsYouTypeFormatter { nationalNumber.setLength(0); ableToFormat = true; positionToRemember = 0; - originalPosition = 0; + originalPosition = 0; isInternationalFormatting = false; isExpectingCountryCode = false; possibleFormats.clear(); diff --git a/java/src/com/google/i18n/phonenumbers/Phonemetadata.java b/java/src/com/google/i18n/phonenumbers/Phonemetadata.java index 4b447a8bb..a6a91d879 100644 --- a/java/src/com/google/i18n/phonenumbers/Phonemetadata.java +++ b/java/src/com/google/i18n/phonenumbers/Phonemetadata.java @@ -86,7 +86,7 @@ public final class Phonemetadata { hasNationalPrefixFormattingRule = false; nationalPrefixFormattingRule_ = ""; return this; - } + } // optional string domestic_carrier_code_formatting_rule = 5; private boolean hasDomesticCarrierCodeFormattingRule; diff --git a/java/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java b/java/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java index 748254808..a6155286b 100644 --- a/java/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java +++ b/java/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java @@ -35,7 +35,7 @@ public class AsYouTypeFormatterTest extends TestCase { "/com/google/i18n/phonenumbers/PhoneNumberMetadataProtoForTesting"; public AsYouTypeFormatterTest() { - PhoneNumberUtil.resetInstance(); + PhoneNumberUtil.resetInstance(); InputStream in = PhoneNumberUtilTest.class.getResourceAsStream(TEST_META_DATA_FILE); phoneUtil = PhoneNumberUtil.getInstance(in); } @@ -174,7 +174,7 @@ public class AsYouTypeFormatterTest extends TestCase { } public void testAYTFAndRememberPositionUS() { - AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US"); + AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US"); assertEquals("1", formatter.inputDigitAndRememberPosition('1')); assertEquals(1, formatter.getRememberedPosition()); assertEquals("16", formatter.inputDigit('6')); diff --git a/java/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java b/java/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java index b816b3307..e6af641b2 100644 --- a/java/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java +++ b/java/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java @@ -338,7 +338,7 @@ public class PhoneNumberUtilTest extends TestCase { assertEquals("+49 8021 2345", phoneUtil.format(deNumber, PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL)); - deNumber.clear(); + deNumber.clear(); deNumber.setCountryCode(49).setNationalNumber(1234L); // Note this number is correctly formatted without national prefix. Most of the numbers that // are treated as invalid numbers by the library are short numbers, and they are usually not