From: jia.shao.peng Date: Tue, 15 Mar 2011 12:00:10 +0000 (+0000) Subject: JS: Fix compiler warning as reported in issue18. Patch contributed by tronikos. X-Git-Tag: upstream/5.3.2~382 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8745d427b17b63067108f2999922ba7fc18b18f5;p=platform%2Fupstream%2Flibphonenumber.git JS: Fix compiler warning as reported in issue18. Patch contributed by tronikos. git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@134 ee073f10-1060-11df-b6a4-87a95322a99c --- diff --git a/javascript/i18n/phonenumbers/phonenumberutil.js b/javascript/i18n/phonenumbers/phonenumberutil.js index d4a10d1..cae75b5 100644 --- a/javascript/i18n/phonenumbers/phonenumberutil.js +++ b/javascript/i18n/phonenumbers/phonenumberutil.js @@ -413,7 +413,7 @@ i18n.phonenumbers.PhoneNumberUtil.CAPTURING_DIGIT_PATTERN_ = * * @const * @type {RegExp} - * @protected + * @public */ i18n.phonenumbers.PhoneNumberUtil.VALID_START_CHAR_PATTERN = new RegExp('[' + i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_ + @@ -1977,7 +1977,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.getCountryCodeForRegion = * numbers. Use the library's formatting functions to prefix the national prefix * when required. * - * @param {string} regionCode the ISO 3166-1 two-letter country code that + * @param {?string} regionCode the ISO 3166-1 two-letter country code that * denotes the country/region that we want to get the dialling prefix for. * @param {boolean} stripNonDigits true to strip non-digits from the national * dialling prefix. @@ -2591,7 +2591,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.checkRegionForParsing_ = function( * for a particular country/region is not performed. This can be done separately * with isValidNumber. * - * @param {string} numberToParse number that we are attempting to parse. This + * @param {?string} numberToParse number that we are attempting to parse. This * can contain formatting such as +, ( and -, as well as a phone number * extension. * @param {?string} defaultCountry the ISO 3166-1 two-letter country code that @@ -2650,7 +2650,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.parseAndKeepRawInput = * same as the public parse() method, with the exception that it allows the * default country to be null, for use by isNumberMatch(). * - * @param {string} numberToParse number that we are attempting to parse. This + * @param {?string} numberToParse number that we are attempting to parse. This * can contain formatting such as +, ( and -, as well as a phone number * extension. * @param {?string} defaultCountry the ISO 3166-1 two-letter country code that