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