/guava/android/guava/src/com/google/common/collect/TopKSelector.java
T[] topK = Arrays.copyOf( bufferSize) ;
T[] topK = Arrays.copyOf ( castBuffer, bufferSize ) ;
Arrays.sort(castBuffer, 0, bufferSize, comparator); if (bufferSize > k) { Arrays.fill(buffer, k, buffer.length, null); bufferSize = k; threshold = buffer[k - 1]; } <extra_id_0> return Collections.unmodifiableList(Arrays.asList(topK)); } }