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.84 by jsr166, Sat Jan 19 18:11:56 2013 UTC vs.
Revision 1.85 by jsr166, Sat Jan 19 18:18:10 2013 UTC

# Line 453 | Line 453 | public class PriorityQueue<E> extends Ab
453       */
454      @SuppressWarnings("unchecked")
455      public <T> T[] toArray(T[] a) {
456 +        final int size = this.size;
457          if (a.length < size)
458              // Make a new array of a's runtime type, but my contents:
459              return (T[]) Arrays.copyOf(queue, size, a.getClass());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines