[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.117, Tue Dec 20 22:37:31 2016 UTC revision 1.118, Thu Dec 29 23:14:34 2016 UTC
# Line 734  Line 734 
734      @SuppressWarnings("unchecked")      @SuppressWarnings("unchecked")
735      private void heapify() {      private void heapify() {
736          final Object[] es = queue;          final Object[] es = queue;
737          final int half = (size >>> 1) - 1;          int i = (size >>> 1) - 1;
738          if (comparator == null)          if (comparator == null)
739              for (int i = half; i >= 0; i--)              for (; i >= 0; i--)
740                  siftDownComparable(i, (E) es[i]);                  siftDownComparable(i, (E) es[i]);
741          else          else
742              for (int i = half; i >= 0; i--)              for (; i >= 0; i--)
743                  siftDownUsingComparator(i, (E) es[i]);                  siftDownUsingComparator(i, (E) es[i]);
744      }      }
745    

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8