[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.84, Sat Jan 19 18:11:56 2013 UTC revision 1.85, Sat Jan 19 18:18:10 2013 UTC
# Line 453  Line 453 
453       */       */
454      @SuppressWarnings("unchecked")      @SuppressWarnings("unchecked")
455      public <T> T[] toArray(T[] a) {      public <T> T[] toArray(T[] a) {
456            final int size = this.size;
457          if (a.length < size)          if (a.length < size)
458              // Make a new array of a's runtime type, but my contents:              // Make a new array of a's runtime type, but my contents:
459              return (T[]) Arrays.copyOf(queue, size, a.getClass());              return (T[]) Arrays.copyOf(queue, size, a.getClass());

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8