ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/PriorityQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/PriorityQueue.java (file contents):
Revision 1.99 by jsr166, Fri Apr 11 21:15:44 2014 UTC vs.
Revision 1.100 by jsr166, Fri Aug 29 21:42:37 2014 UTC

# Line 393 | Line 393 | public class PriorityQueue<E> extends Ab
393       * @return {@code true} if this queue contains the specified element
394       */
395      public boolean contains(Object o) {
396 <        return indexOf(o) != -1;
396 >        return indexOf(o) >= 0;
397      }
398  
399      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines