harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r559420 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/HashMap.java
Date Wed, 25 Jul 2007 12:21:59 GMT
Author: tellison
Date: Wed Jul 25 05:21:58 2007
New Revision: 559420

URL: http://svn.apache.org/viewvc?view=rev&rev=559420
Log:
Fix spelling typo.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/HashMap.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/HashMap.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/HashMap.java?view=diff&rev=559420&r1=559419&r2=559420
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/HashMap.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/HashMap.java Wed
Jul 25 05:21:58 2007
@@ -240,7 +240,7 @@
      */
     public HashMap(int capacity) {
         if (capacity >= 0) {
-            capacity = caculateCapacity(capacity);
+            capacity = calculateCapacity(capacity);
             elementCount = 0;
             elementData = newElementArray(capacity);
             loadFactor = 0.75f; // Default load factor of 0.75
@@ -250,7 +250,7 @@
         }
     }
     
-    private static final int caculateCapacity(int x) {
+    private static final int calculateCapacity(int x) {
         if(x >= 1 << 30){
             return 1 << 30;
         }
@@ -282,7 +282,7 @@
      */
     public HashMap(int capacity, float loadFactor) {
         if (capacity >= 0 && loadFactor > 0) {
-        	capacity = caculateCapacity(capacity);
+            capacity = calculateCapacity(capacity);
             elementCount = 0;
             elementData = newElementArray(capacity == 0 ? 1 : capacity);
             this.loadFactor = loadFactor;
@@ -598,7 +598,7 @@
     }
 
     void rehash(int capacity) {
-        int length = caculateCapacity((capacity == 0 ? 1 : capacity << 1));
+        int length = calculateCapacity((capacity == 0 ? 1 : capacity << 1));
 
         Entry<K, V>[] newData = newElementArray(length);
         for (int i = 0; i < elementData.length; i++) {



Mime
View raw message