diff --git a/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java b/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java index bbf9343b8..82d65a1b0 100644 --- a/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java +++ b/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java @@ -280,17 +280,15 @@ public class CircularFifoQueue extends AbstractCollection public E poll() { if (isEmpty()) { return null; - } else { - return remove(); } + return remove(); } public E element() { if (isEmpty()) { throw new NoSuchElementException("queue is empty"); - } else { - return peek(); } + return peek(); } public E peek() {