How to remove warnings java
<p>I found this and it seems to be working, I'm trying to iterate trough HashMap :</p>

<p><a href="http://stackoverflow.com/questions/1066589/java-iterate-through-hashmap">Java: iterate through HashMap</a></p>

<p>But this portion of code shows warnings and I don't have a clue how to make it not show them :</p>

<pre><code>Iterator it = map.entrySet().iterator();
Map.Entry pairs = (Map.Entry) it.next();
</code></pre>

<p>Is there a way to "fix" this without using suppressWarnings annotation ?</p>
