title: Java: Type Safety warning with unchecked conversion
body: <p>I am using java in my project. When I try to get keys from a json object I get this warning: <code>Type safety: The expression of type Iterator needs unchecked conversion to conform to Iterator</code> I tried to fix by <code>@SupressWarning('unchecked')</code> but eclipse still shows the warning on file. I don't know what is going wrong.</p>
  
  <pre><code>   public static HashMap&lt;String, String&gt; jsonToMap(final JSONObject jsonMap)
                  throws JSONException {
              HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
              Iterator&lt;Object&gt; keys = jsonMap.keys();
              while (keys.hasNext()) {
                  String key = (String) keys.next();
                  String value = jsonMap.getString(key);
                  map.put(key, value);
  
              }
              return map;
          }
  </code></pre>