Skip to content

Commit

Permalink
Rewrite comments
Browse files Browse the repository at this point in the history
I rewrote some comments because they didnt make sense and were misplaced
  • Loading branch information
KarolJakubKrawiec committed Dec 12, 2024
1 parent 90270c7 commit 5155f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

/** 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; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ public void testMaybeExtractCountryCode() {
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());

Expand Down

0 comments on commit 5155f58

Please sign in to comment.