harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r602545 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/TreeMap.java
Date Sat, 08 Dec 2007 20:50:43 GMT
Author: apetrenko
Date: Sat Dec  8 12:50:40 2007
New Revision: 602545

URL: http://svn.apache.org/viewvc?rev=602545&view=rev
Log:
Additional patch for HARMONY-5265 "[classlib][luni] TreeMap bug fixing 
and further performance improvements"

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/TreeMap.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/TreeMap.java?rev=602545&r1=602544&r2=602545&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/TreeMap.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/TreeMap.java Sat
Dec  8 12:50:40 2007
@@ -1862,10 +1862,10 @@
         } else {
             toDelete = node.next;
         }
-        if (node.left != null) {
-            toConnect = node.left;
+        if (toDelete.left != null) {
+            toConnect = toDelete.left;
         } else {
-            toConnect = node.right;
+            toConnect = toDelete.right;
         }
         if (toConnect != null) {
             toConnect.parent = toDelete.parent;



Mime
View raw message