JS: Minor changes to types to make compiler happier.
authorLara Scheidegger <lararennie@google.com>
Fri, 31 Oct 2014 13:05:29 +0000 (13:05 +0000)
committerYoungjae Shin <yj99.shin@samsung.com>
Tue, 9 Jun 2015 11:43:22 +0000 (20:43 +0900)
javascript/i18n/phonenumbers/metadata.js
javascript/i18n/phonenumbers/metadatafortesting.js
javascript/i18n/phonenumbers/metadatalite.js
javascript/i18n/phonenumbers/phonenumberutil.js
tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar
tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataJsonFromXml.java
tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar

index 9810134..185d57e 100644 (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}"]
index 6cdddbb..977f558 100644 (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":[,[]
index 1164d8f..7f9956e 100644 (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}"]
index 5287d9c..264aecf 100644 (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.
index 0b156cc..049b7c4 100644 (file)
Binary files a/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar and b/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar differ
index 35cb11a..2a264de 100644 (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;
index ea82391..b0999cd 100644 (file)
Binary files a/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar and b/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar differ