[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.53, Wed Nov 23 05:33:25 2005 UTC revision 1.54, Thu Nov 24 03:44:57 2005 UTC
# Line 273  Line 273 
273              if (newlen >= Integer.MAX_VALUE / 2)  // avoid overflow              if (newlen >= Integer.MAX_VALUE / 2)  // avoid overflow
274                  newlen = Integer.MAX_VALUE;                  newlen = Integer.MAX_VALUE;
275              else              else
276                  newlen <<= 2;                  newlen <<= 1;
277          }          }
278          queue = Arrays.copyOf(queue, newlen);          queue = Arrays.copyOf(queue, newlen);
279      }      }

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8