[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.108, Sun Oct 11 00:50:06 2015 UTC revision 1.109, Wed Jun 1 16:08:04 2016 UTC
# Line 337  Line 337 
337          int i = size;          int i = size;
338          if (i >= queue.length)          if (i >= queue.length)
339              grow(i + 1);              grow(i + 1);
         size = i + 1;  
         if (i == 0)  
             queue[0] = e;  
         else  
340              siftUp(i, e);              siftUp(i, e);
341            size = i + 1;
342          return true;          return true;
343      }      }
344    

Legend:
Removed from v.1.108  
changed lines
  Added in v.1.109

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8