harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r967016 - /harmony/enhanced/java/branches/java6/classlib/modules/luni/src/main/java/java/util/PriorityQueue.java
Date Fri, 23 Jul 2010 09:45:51 GMT
Author: tellison
Date: Fri Jul 23 09:45:50 2010
New Revision: 967016

URL: http://svn.apache.org/viewvc?rev=967016&view=rev
Log:
Flip receiver of equals message to be parameter rather than element to match RI behavior.

Modified:
    harmony/enhanced/java/branches/java6/classlib/modules/luni/src/main/java/java/util/PriorityQueue.java

Modified: harmony/enhanced/java/branches/java6/classlib/modules/luni/src/main/java/java/util/PriorityQueue.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/luni/src/main/java/java/util/PriorityQueue.java?rev=967016&r1=967015&r2=967016&view=diff
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/luni/src/main/java/java/util/PriorityQueue.java
(original)
+++ harmony/enhanced/java/branches/java6/classlib/modules/luni/src/main/java/java/util/PriorityQueue.java
Fri Jul 23 09:45:50 2010
@@ -278,7 +278,7 @@ public class PriorityQueue<E> extends Ab
     @Override
     public boolean contains(Object object) {
         for (int i = 0; i < size; i++) {
-            if(elements[i].equals(object)){
+            if (object.equals(elements[i])) {
                 return true;
             }
         }



Mime
View raw message