[cvs] / jsr166 / src / main / java / util / PriorityQueue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/PriorityQueue.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.99, Fri Apr 11 21:15:44 2014 UTC revision 1.100, Fri Aug 29 21:42:37 2014 UTC
# Line 393  Line 393 
393       * @return {@code true} if this queue contains the specified element       * @return {@code true} if this queue contains the specified element
394       */       */
395      public boolean contains(Object o) {      public boolean contains(Object o) {
396          return indexOf(o) != -1;          return indexOf(o) >= 0;
397      }      }
398    
399      /**      /**

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8