title: Effect of Queue.poll()
body: <p>I'm trying to correct some of the bugs found by the FindBugs plugin in Eclipse in an outside project, and I'm getting following error:</p>
  
  <blockquote>
    <p>Method ignores return value</p>
  </blockquote>
  
  <p>in this piece of code:</p>
  
  <pre><code>int maxSize;
  Queue&lt;e&gt; queue;
  
  (...)
  
  while (queue.size() &gt; maxSize) {
      queue.poll();
  }
  </code></pre>
  
  <p>Unfortunatelly this is beyond my knowledge, and I would like to know what is the effect of the <code>poll()</code> method except returning <code>E</code> type object? Is it ok if I just removed this block of code?</p>