Skip to content
Snippets Groups Projects
Commit aad4db7a authored by Christian Wulf's avatar Christian Wulf
Browse files

removed a warning

parent 25c5c9ea
No related branches found
No related tags found
No related merge requests found
......@@ -81,11 +81,11 @@ public class CommittableResizableArrayQueue<T> implements CommittableQueue<T> {
this.replaceCurrentArrayBy(newElements);
}
private void shrink() {
T[] newElements = this.arrayPool.acquire(this.elements.length / 2);
// System.out.println("shrink: " + this.lastFreeIndexUncommitted);
this.replaceCurrentArrayBy(newElements);
}
// private void shrink() {
// T[] newElements = this.arrayPool.acquire(this.elements.length / 2);
// // System.out.println("shrink: " + this.lastFreeIndexUncommitted);
// this.replaceCurrentArrayBy(newElements);
// }
private final void replaceCurrentArrayBy(final T[] newElements) {
this.copyArray(this.elements, newElements);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment