Browse Source

JS: Minor changes to types to make compiler happier.

pull/567/head
Lara Scheidegger 11 years ago
committed by Mihaela Rosca
parent
commit
b4d6b9f9c6
7 changed files with 10 additions and 12 deletions
  1. +2
    -2
      javascript/i18n/phonenumbers/metadata.js
  2. +2
    -2
      javascript/i18n/phonenumbers/metadatafortesting.js
  3. +2
    -2
      javascript/i18n/phonenumbers/metadatalite.js
  4. +2
    -4
      javascript/i18n/phonenumbers/phonenumberutil.js
  5. BIN
      tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar
  6. +2
    -2
      tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataJsonFromXml.java
  7. BIN
      tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar

+ 2
- 2
javascript/i18n/phonenumbers/metadata.js View File

@ -28,7 +28,7 @@ goog.provide('i18n.phonenumbers.metadata');
* region represented by that country calling code. In the case of multiple
* countries sharing a calling code, such as the NANPA regions, the one
* indicated with "isMainCountryForCode" in the metadata should be first.
* @type {Object.<number, Array.<string>>}
* @type {!Object.<number, Array.<string>>}
*/
i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"]
@ -250,7 +250,7 @@ i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
/**
* A mapping from a region code to the PhoneMetadata for that region.
* @type {Object.<string, Array>}
* @type {!Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
"AC":[,[,,"[2-7]\\d{3,5}","\\d{4,6}"]


+ 2
- 2
javascript/i18n/phonenumbers/metadatafortesting.js View File

@ -28,7 +28,7 @@ goog.provide('i18n.phonenumbers.metadata');
* region represented by that country calling code. In the case of multiple
* countries sharing a calling code, such as the NANPA regions, the one
* indicated with "isMainCountryForCode" in the metadata should be first.
* @type {Object.<number, Array.<string>>}
* @type {!Object.<number, Array.<string>>}
*/
i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
1:["US","BB","BS","CA"]
@ -58,7 +58,7 @@ i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
/**
* A mapping from a region code to the PhoneMetadata for that region.
* @type {Object.<string, Array>}
* @type {!Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
"AD":[,[]


+ 2
- 2
javascript/i18n/phonenumbers/metadatalite.js View File

@ -28,7 +28,7 @@ goog.provide('i18n.phonenumbers.metadata');
* region represented by that country calling code. In the case of multiple
* countries sharing a calling code, such as the NANPA regions, the one
* indicated with "isMainCountryForCode" in the metadata should be first.
* @type {Object.<number, Array.<string>>}
* @type {!Object.<number, Array.<string>>}
*/
i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"]
@ -250,7 +250,7 @@ i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
/**
* A mapping from a region code to the PhoneMetadata for that region.
* @type {Object.<string, Array>}
* @type {!Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
"AC":[,[,,"[2-7]\\d{3,5}","\\d{4,6}"]


+ 2
- 4
javascript/i18n/phonenumbers/phonenumberutil.js View File

@ -1271,8 +1271,7 @@ i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken =
/**
* Convenience method to get a list of what regions the library has metadata
* for.
*
* @return {!Array<string>} region codes supported by the library.
* @return {!Array.<string>} region codes supported by the library.
*/
i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions = function() {
return goog.array.filter(
@ -1286,8 +1285,7 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions = function() {
/**
* Convenience method to get a list of what global network calling codes the
* library has metadata for.
*
* @return {!Array<number>} global network calling codes supported by the
* @return {!Array.<number>} global network calling codes supported by the
* library.
*/
i18n.phonenumbers.PhoneNumberUtil.prototype.


BIN
tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar View File


+ 2
- 2
tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataJsonFromXml.java View File

@ -63,13 +63,13 @@ public class BuildMetadataJsonFromXml extends Command {
" * region represented by that country calling code. In the case of multiple\n" +
" * countries sharing a calling code, such as the NANPA regions, the one\n" +
" * indicated with \"isMainCountryForCode\" in the metadata should be first.\n" +
" * @type {Object.<number, Array.<string>>}\n" +
" * @type {!Object.<number, Array.<string>>}\n" +
" */\n";
private static final String COUNTRY_TO_METADATA_COMMENT =
"/**\n" +
" * A mapping from a region code to the PhoneMetadata for that region.\n" +
" * @type {Object.<string, Array>}\n" +
" * @type {!Object.<string, Array>}\n" +
" */\n";
private static final int COPYRIGHT_YEAR = 2010;


BIN
tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar View File


Loading…
Cancel
Save