harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r544805 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Hashtable.java
Date Wed, 06 Jun 2007 11:16:46 GMT
Author: tellison
Date: Wed Jun  6 04:16:45 2007
New Revision: 544805

URL: http://svn.apache.org/viewvc?view=rev&rev=544805
Log:
Apply patch HARMONY-4067 ([classlib][luni] java.util.Hashtable has a problem with contains)

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Hashtable.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Hashtable.java?view=diff&rev=544805&r1=544804&r2=544805
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Hashtable.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Hashtable.java Wed
Jun  6 04:16:45 2007
@@ -373,7 +373,7 @@
         for (int i = elementData.length; --i >= 0;) {
             Entry<K, V> entry = elementData[i];
             while (entry != null) {
-                if (value.equals(entry.value)) {
+                if (entry.value.equals(value)) {
                     return true;
                 }
                 entry = entry.next;



Mime
View raw message