Bug 7449: Move Dispatchers to sal-clustering-commons
[controller.git] / opendaylight / md-sal / cds-access-client / src / main / java / org / opendaylight / controller / cluster / access / client / EmptyQueue.java
index 1513ebaad6c1dd1c924cfaf800aeb522ef6be585..125f0251cd947198edbc17072d66c7fc607c7d61 100644 (file)
@@ -12,18 +12,18 @@ import java.util.AbstractQueue;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.Queue;
+import org.opendaylight.yangtools.concepts.Immutable;
 
 /**
  * A specialized always-empty implementation of {@link java.util.Queue}. This implementation will always refuse new
  * elements in its {@link #offer(Object)} method.
-
  * @author Robert Varga
  *
  * @param <E> the type of elements held in this collection
  */
 // TODO: move this class into yangtools.util
 @Beta
-public final class EmptyQueue<E> extends AbstractQueue<E> {
+public final class EmptyQueue<E> extends AbstractQueue<E> implements Immutable {
     private static final EmptyQueue<?> INSTANCE = new EmptyQueue<>();
 
     private EmptyQueue() {
@@ -36,7 +36,7 @@ public final class EmptyQueue<E> extends AbstractQueue<E> {
     }
 
     @Override
-    public boolean offer(final E e) {
+    public boolean offer(final E entry) {
         return false;
     }
 
@@ -59,4 +59,4 @@ public final class EmptyQueue<E> extends AbstractQueue<E> {
     public int size() {
         return 0;
     }
-}
\ No newline at end of file
+}