title: Error when iterating through Entry Set of HttpServletRequest Parameter Map
body: <p>Here is my source code:</p>
  
  <pre><code>for (Map.Entry&lt;String, String[]&gt; e : request.getParameterMap().entrySet()) {
    if(e.getValue() != null &amp;&amp; e.getValue().length &gt; 0) { 
      someMap.put(e.getKey(), e.getValue()[0]);
    } else {
      someMap.put(e.getKey(), e.getValue());
    }
  }
  </code></pre>
  
  <p>and I get this compile error:</p>
  
  <pre><code>Type mismatch: cannot convert from element type Object to Map.Entry&lt;String, String[]&gt;
  </code></pre>
  
  <p>Exception is raised in the first line of the code above. The thing is this piece of code compiles and runs smoothly in Eclipse w/ Java 7; however, fails to do so in a project builder that also has the same Java version. Want to know what causes this error and how can I fix it. Thanks.</p>