Revision: 7752
Author: [email protected]
Date: Fri Mar 19 10:43:13 2010
Log: Replace calls to printInt(num) with printInt(num, 10) to make sure
the numbers are parsed in base 10.  This avoids warnings from
Closure Compiler about missing parameters.  parseInt will "guess" at the
base if the parameter is not named, so "015" would get parsed as
13.

Review at http://gwt-code-reviews.appspot.com/225802

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=7752

Modified:
 /trunk/user/super/com/google/gwt/emul/java/util/AbstractHashMap.java

=======================================
--- /trunk/user/super/com/google/gwt/emul/java/util/AbstractHashMap.java Thu Apr 17 14:40:44 2008 +++ /trunk/user/super/com/google/gwt/emul/java/util/AbstractHashMap.java Fri Mar 19 10:43:13 2010
@@ -276,7 +276,7 @@
     var hashCodeMap = [email protected]::hashCodeMap;
     for (var hashCode in hashCodeMap) {
       // sanity check that it's really an integer
-      if (hashCode == parseInt(hashCode)) {
+      if (hashCode == parseInt(hashCode, 10)) {
         var array = hashCodeMap[hashCode];
         for (var i = 0, c = array.length; i < c; ++i) {
           [email protected]::add(Ljava/lang/Object;)(array[i]);
@@ -312,7 +312,7 @@
     var hashCodeMap = [email protected]::hashCodeMap;
     for (var hashCode in hashCodeMap) {
       // sanity check that it's really one of ours
-      if (hashCode == parseInt(hashCode)) {
+      if (hashCode == parseInt(hashCode, 10)) {
         var array = hashCodeMap[hashCode];
         for (var i = 0, c = array.length; i < c; ++i) {
           var entry = array[i];

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words "REMOVE ME" as the subject.

Reply via email to