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

Comparing jsr166/src/jdk7/java/util/PriorityQueue.java (file contents):
Revision 1.2 by jsr166, Wed Jan 16 01:39:37 2013 UTC vs.
Revision 1.3 by jsr166, Sat Jan 19 18:19:46 2013 UTC

# Line 448 | Line 448 | public class PriorityQueue<E> extends Ab
448       * @throws NullPointerException if the specified array is null
449       */
450      public <T> T[] toArray(T[] a) {
451 +        final int size = this.size;
452          if (a.length < size)
453              // Make a new array of a's runtime type, but my contents:
454              return (T[]) Arrays.copyOf(queue, size, a.getClass());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines