Browse Source

Rewrite comments

I rewrote some comments because they didnt make sense and were misplaced
pull/3730/head
KarolJakubKrawiec 1 year ago
parent
commit
5155f580b8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      java/libphonenumber/src/com/google/i18n/phonenumbers/ParsingOptions.java
  2. +1
    -1
      java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java

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

@ -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; }


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

@ -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());


Loading…
Cancel
Save