mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -15,11 +15,12 @@
|
||||
*/
|
||||
package com.intellij.util.containers;
|
||||
|
||||
import com.intellij.util.ArrayUtil;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class Queue<T> {
|
||||
private final static Object[] EMPTY = new Object[0];
|
||||
private Object[] myArray;
|
||||
private int myFirst;
|
||||
private int myLast;
|
||||
@@ -29,7 +30,7 @@ public class Queue<T> {
|
||||
private boolean isWrapped;
|
||||
|
||||
public Queue(int initialCapacity) {
|
||||
myArray = initialCapacity > 0 ? new Object[initialCapacity] : EMPTY;
|
||||
myArray = initialCapacity > 0 ? new Object[initialCapacity] : ArrayUtil.EMPTY_OBJECT_ARRAY;
|
||||
}
|
||||
|
||||
public void addLast(T object) {
|
||||
|
||||
Reference in New Issue
Block a user