/guava/android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
int newCapacity = calculateNewCapacity ( ) ; Object[] newQueue = new Object[newCapacity];
result = Math.max(result, initialSize); } return capAtMaximumSize(result, maximumSize); } private void growIfNeeded() { if (size > queue.length) { <extra_id_0> System.arraycopy(queue, 0, newQueue, 0, queue.length); queue = newQueue; } } private int calculateNewCapacity() { int oldCapacity = queue.length;