diff --git a/java/libphonenumber/src/com/google/i18n/phonenumbers/ParsingOptions.java b/java/libphonenumber/src/com/google/i18n/phonenumbers/ParsingOptions.java index 1fc1ceb7e..af3eb1aef 100644 --- a/java/libphonenumber/src/com/google/i18n/phonenumbers/ParsingOptions.java +++ b/java/libphonenumber/src/com/google/i18n/phonenumbers/ParsingOptions.java @@ -18,13 +18,13 @@ package com.google.i18n.phonenumbers; /** Options for the phone number parser. */ public class ParsingOptions { + /** * Returns the region we are expecting the number to be from. This is ignored if the number being * parsed is written in international format. In case of national format, the country_code will be * set to the one of this default region. If the number is guaranteed to start with a '+' followed * by the country calling code, then RegionCode.ZZ or null can be supplied. */ - private boolean hasDefaultRegion; private String defaultRegion_ = null; public boolean hasDefaultRegion() { return hasDefaultRegion; } diff --git a/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java b/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java index 0f6f8a40f..66b33fbee 100644 --- a/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java +++ b/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java @@ -2085,7 +2085,7 @@ public class PhoneNumberUtilTest extends TestMetadataTestCase { public void testParseNationalNumber() throws Exception { // National prefix attached. assertEquals(NZ_NUMBER, phoneUtil.parse("033316005", RegionCode.NZ)); - // Some fields are not filled in by parse, but only by parseWithOptions. + // Some fields are not filled in by parse, but only by parseWithOptions with the keepRawInput option set. assertFalse(NZ_NUMBER.hasCountryCodeSource()); assertEquals(CountryCodeSource.UNSPECIFIED, NZ_NUMBER.getCountryCodeSource());